MCPcopy
hub / github.com/openfga/openfga / Pop

Function Pop

internal/stack/stack.go:23–25  ·  view source on GitHub ↗
(stack Stack[T])

Source from the content-addressed store, hash-verified

21}
22
23func Pop[T any](stack Stack[T]) (T, Stack[T]) {
24 return stack.value, Stack[T](stack.next)
25}
26
27func Peek[T any](stack Stack[T]) T {
28 return stack.value

Callers 5

loopOverEdgesMethod · 0.92
executeQueryJobMethod · 0.92
TestStackFunction · 0.85
StringFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStackFunction · 0.68