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

Method create

src/jvm/clojure/lang/PersistentList.java:86–93  ·  view source on GitHub ↗
(List init)

Source from the content-addressed store, hash-verified

84}
85
86public static IPersistentList create(List init){
87 IPersistentList ret = EMPTY;
88 for(ListIterator i = init.listIterator(init.size()); i.hasPrevious();)
89 {
90 ret = (IPersistentList) ret.cons(i.previous());
91 }
92 return ret;
93}
94
95public Object first(){
96 return _first;

Callers 4

invokeMethod · 0.95
invokeMethod · 0.95
doInvokeMethod · 0.45
invokeStaticMethod · 0.45

Calls 5

hasPreviousMethod · 0.80
previousMethod · 0.80
consMethod · 0.65
listIteratorMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected