def finish

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

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

94def finish(~T: Data, st: Queue<T> & List<&2, E.Obs<T>>) -> Queue<T> & List<&2, E.Obs<T>>:
95  (q, acc) = st
96  (q, List.reverse(&2, E.Obs<T>, acc))

Uses (6)

Used by (1)