NewStack creates a new stack
(maxChunks int)
| 14 | |
| 15 | // NewStack creates a new stack |
| 16 | func NewStack(maxChunks int) *Stack { |
| 17 | return &Stack{ |
| 18 | items: list.New(), |
| 19 | maxSize: maxChunks, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // Len gets the number of items on the stack |
| 24 | func (s *Stack) Len() int { |
no outgoing calls