MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / makeKeywords

Function makeKeywords

mini-code-edit/cm/mode/clojure/clojure.js:10–14  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

8 var INDENT_WORD_SKIP = 2, KEYWORDS_SKIP = 1;
9
10 function makeKeywords(str) {
11 var obj = {}, words = str.split(" ");
12 for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
13 return obj;
14 }
15
16 var atoms = makeKeywords("true false nil");
17

Callers 1

clojure.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected