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

Method pop

src/jvm/clojure/lang/PersistentQueue.java:107–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107public PersistentQueue pop(){
108 if(f == null) //hmmm... pop of empty queue -> empty queue?
109 return this;
110 //throw new IllegalStateException("popping empty queue");
111 ISeq f1 = f.next();
112 PersistentVector r1 = r;
113 if(f1 == null)
114 {
115 f1 = RT.seq(r);
116 r1 = null;
117 }
118 return new PersistentQueue(meta(), cnt - 1, f1, r1);
119}
120
121public int count(){
122 return cnt;

Callers

nothing calls this directly

Calls 3

seqMethod · 0.95
nextMethod · 0.65
metaMethod · 0.65

Tested by

no test coverage detected