type Deque
import bend-collections-laws-math@1.0.0.0/src/containers/deque.bend as Dequeimport Base
4# Two-list deque: logical order is front ++ reverse(back).
5# Rebalance only when the requested side is empty, moving half the other
6# side. End operations are amortized O(1) along a consumed state history;
7# a rebalance is O(n). to_list is O(n). No arrays, handles or DLL storage.
8type Deque<-T: Data> is Type:
9 DE{front: List<&2, T>, back: List<&2, T>, nf: Nat, nb: Nat}
Uses (2)
Used by (28)
- bend-collections-laws-math@1.0.0.0/src/containers/deque:ready_back
- bend-collections-laws-math@1.0.0.0/src/containers/deque:ready_front
- bend-collections-laws-math@1.0.0.0/src/containers/deque:back_split
- bend-collections-laws-math@1.0.0.0/src/containers/deque:finish
- bend-collections-laws-math@1.0.0.0/src/containers/deque:front_split
- …