MCPcopy Index your code
hub / github.com/clojure/clojure / create

Method create

src/jvm/clojure/lang/PersistentHashMap.java:41–49  ·  view source on GitHub ↗
(Map other)

Source from the content-addressed store, hash-verified

39final private static Object NOT_FOUND = new Object();
40
41static public IPersistentMap create(Map other){
42 ITransientMap ret = EMPTY.asTransient();
43 for(Object o : other.entrySet())
44 {
45 Map.Entry e = (Entry) o;
46 ret = ret.assoc(e.getKey(), e.getValue());
47 }
48 return ret.persistent();
49}
50
51/*
52 * @param init {key1,val1,key2,val2,...}

Callers 7

createHTMethod · 0.95
doAssocMethod · 0.95
CompilerClass · 0.95
pushNSMethod · 0.95
SymbolicValueReaderClass · 0.95
SymbolicValueReaderClass · 0.95
mapUniqueKeysMethod · 0.95

Calls 11

assocMethod · 0.95
persistentMethod · 0.95
secondMethod · 0.95
formatMethod · 0.80
asTransientMethod · 0.65
nextMethod · 0.65
firstMethod · 0.65
withMetaMethod · 0.65
entrySetMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected