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

Method create

src/jvm/clojure/lang/PersistentTreeMap.java:35–43  ·  view source on GitHub ↗
(Map other)

Source from the content-addressed store, hash-verified

33final static public PersistentTreeMap EMPTY = new PersistentTreeMap();
34
35static public IPersistentMap create(Map other){
36 IPersistentMap ret = EMPTY;
37 for(Object o : other.entrySet())
38 {
39 Map.Entry e = (Entry) o;
40 ret = ret.assoc(e.getKey(), e.getValue());
41 }
42 return ret;
43}
44
45public PersistentTreeMap(){
46 this(RT.DEFAULT_COMPARATOR);

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected