def to_list
import bend-collections-laws-math@1.0.0.0/src/containers/deque.bend as Dequeimport 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)))