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

Method iterator

src/jvm/clojure/lang/APersistentSet.java:176–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176public Iterator iterator(){
177 if(impl instanceof IMapIterable)
178 return ((IMapIterable)impl).keyIterator();
179 else return new Iterator() {
180 private final Iterator iter = impl.iterator();
181
182 public boolean hasNext() {
183 return iter.hasNext();
184 }
185
186 public Object next() {
187 return ((IMapEntry)iter.next()).key();
188 }
189
190 public void remove() {
191 throw new UnsupportedOperationException();
192 }
193 };
194}
195
196}

Callers

nothing calls this directly

Calls 2

keyIteratorMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected