def finish
import bend-collections@1.0.0.0/src/containers/queue.bend as Queueimport 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))