def push_front

bend-collections-laws-math@1.0.0.0 · src/containers/deque.bend:18

import bend-collections-laws-math@1.0.0.0/src/containers/deque.bend as Deque
import Base

18def push_front(~T: Data, d: Deque<T>, x: T) -> Deque<T>:
19  DE{f, b, nf, nb} = d
20  DE{Con{x, f}, b, 1n+nf, nb}

Uses (3)

Used by (1)