def to_list

bend-collections@1.0.0.0 · src/containers/deque.bend:108

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

108def to_list(~T: Data, d: Deque<T>) -> Deque<T> & List<&2, T>:
109  DE{+f, +b, nf, nb} = d
110  (DE{f, b, nf, nb}, List.append(&2, T, f, List.reverse(&2, T, b)))

Uses (6)

Used by (1)