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

Method Bottom

stack.go:259–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257}
258
259func (stack *Stack) Bottom() *Card {
260 if len(stack.Tail()) == 0 {
261 return stack.Card
262 }
263 return stack.Tail()[len(stack.Tail())-1]
264}
265
266func (stack *Stack) Index() int {
267 return len(stack.Head()) + 1

Callers 2

UpdateMethod · 0.80
PostDrawMethod · 0.80

Calls 1

TailMethod · 0.95

Tested by

no test coverage detected