MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Top

Method Top

stack.go:252–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func (stack *Stack) Top() *Card {
253 if len(stack.Head()) == 0 {
254 return stack.Card
255 }
256 return stack.Head()[0]
257}
258
259func (stack *Stack) Bottom() *Card {
260 if len(stack.Tail()) == 0 {

Callers 3

UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80

Calls 1

HeadMethod · 0.95

Tested by

no test coverage detected