def to_list

bend-collections@1.0.0.0 · src/containers/internal/dlist_storage.bend:353

import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as DlistStorage
import 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}))

Uses (6)

Used by (3)