type Stack

bend-collections@1.0.0.0 · src/containers/stack.bend:4

import bend-collections@1.0.0.0/src/containers/stack.bend as Stack
import Base

4# Stack over the native singly linked List, with a stored length.
5# Push/pop/peek/length O(1); to_list shares immutable Data elements/list.
6type Stack<-T: Data> is Type:
7  ST{items: List<&2, T>, count: Nat}

Uses (2)

Used by (15)