def run_acc

bend-collections@1.0.0.0 · src/containers/queue.bend:87

import bend-collections@1.0.0.0/src/containers/queue.bend as Queue
import Base
import bend-collections@1.0.0.0/src/containers/types/queue.bend as E

87def run_acc(~T: Data, ops: List<&2, E.Op<T>>, st: Queue<T> & List<&2, E.Obs<T>>) -> Queue<T> & List<&2, E.Obs<T>>:
88  match ops:
89    case Nil{}:
90      st
91    case Con{op, rest}:
92      run_acc(~T, rest, step_acc(~T, op, st))

Uses (6)

Used by (1)