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

Method indexOf

src/jvm/clojure/lang/PersistentArrayMap.java:315–327  ·  view source on GitHub ↗
(Object key)

Source from the content-addressed store, hash-verified

313}
314
315private int indexOf(Object key){
316 if(key instanceof Keyword)
317 {
318 for(int i = 0; i < array.length; i += 2)
319 {
320 if(key == array[i])
321 return i;
322 }
323 return -1;
324 }
325 else
326 return indexOfObject(key);
327}
328
329static boolean equalKey(Object k1, Object k2){
330 if(k1 instanceof Keyword)

Callers 6

containsKeyMethod · 0.95
entryAtMethod · 0.95
assocExMethod · 0.95
assocMethod · 0.95
withoutMethod · 0.95
valAtMethod · 0.95

Calls 1

indexOfObjectMethod · 0.95

Tested by

no test coverage detected