def to_list

bend-collections@1.0.0.0 · src/containers/queue.bend:48

import bend-collections@1.0.0.0/src/containers/queue.bend as Queue
import Base

48def to_list(~T: Data, q: Queue<T>) -> Queue<T> & List<&2, T>:
49  QU{+f, +b, n} = q
50  (QU{f, b, n}, List.append(&2, T, f, List.reverse(&2, T, b)))

Uses (6)

Used by (2)