def step_m

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

import bend-collections@1.0.0.0/src/containers/internal/dlist_storage.bend as DlistStorage
import Base

327def step_m(~T: Data, vals: Array<Maybe<&2, T>>, prevs: Array<U32>, acc: List<&2, T>, +at: U32, m: Maybe<&2, T>) -> Cur<T>:
328  match m:
329    case None{}:
330      C{vals, prevs, acc, nil()}
331    case Some{v}:
332      step_p(~T, vals, Con{v, acc}, Array.get(U32, prevs, slot(at)))

Uses (9)

Used by (1)