Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clojure/clojure
/ peek
Method
peek
src/jvm/clojure/lang/APersistentVector.java:381–385 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
379
}
380
381
public
Object peek(){
382
if
(count() > 0)
383
return
nth(count() - 1);
384
return
null;
385
}
386
387
public
boolean containsKey(Object key){
388
if
(!(Util.isInteger(key)))
Callers
nothing calls this directly
Calls
2
nth
Method · 0.95
count
Method · 0.65
Tested by
no test coverage detected