MCPcopy Create free account
hub / github.com/arafatkatze/DataViz / Peek

Method Peek

stacks/arraystack/arraystack.go:47–49  ·  view source on GitHub ↗

Peek returns top element on the stack without removing it, or nil if stack is empty. Second return parameter is true, unless the stack was empty and there was nothing to peek.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Implementers 2

Heaptrees/binaryheap/binaryheap.go
Stackstacks/arraystack/arraystack.go

Calls 2

GetMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected