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

Method create

src/jvm/clojure/lang/PersistentArrayMap.java:40–48  ·  view source on GitHub ↗
(Map other)

Source from the content-addressed store, hash-verified

38private final IPersistentMap _meta;
39
40static public IPersistentMap create(Map other){
41 ITransientMap ret = EMPTY.asTransient();
42 for(Object o : other.entrySet())
43 {
44 Map.Entry e = (Entry) o;
45 ret = ret.assoc(e.getKey(), e.getValue());
46 }
47 return ret.persistent();
48}
49
50protected PersistentArrayMap(){
51 this.array = new Object[]{};

Callers 4

assocExMethod · 0.95
assocMethod · 0.95
withoutMethod · 0.95
emitValueMethod · 0.95

Calls 7

assocMethod · 0.95
persistentMethod · 0.95
metaMethod · 0.95
asTransientMethod · 0.65
entrySetMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected