MCPcopy Create free account
hub / github.com/careercup/ctci / Element

Struct Element

Go/Chapter 2/stack/stack.go:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8type Element struct {
9 value int // All types satisfy the empty interface, so we can store anything here.
10 next *Element
11}
12
13// Return the stack's length
14func (s *Stack) Len() int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected