def to_list
import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as DlistStorageimport Base
353def to_list(~T: Data, s: DList<T>) -> DList<T> & List<&2, T>:
354 DL{+tag, +fresh, +free, +count, +head, +tail, +depth, +cap, vals, prevs, nexts} = s
355 tl_fin(~T, tag, fresh, free, count, head, tail, depth, cap, nexts, walk(~T, count, C{vals, prevs, Nil{}, tail}))