Deque.run_acc: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/containers/deque.bend as Deque Lines 153-159 of bend-collections-laws-math@1.0.0.0/src/containers/deque.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/containers/deque.bend&start_line=153&end_line=159 import Base import bend-collections-laws-math@1.0.0.0/src/containers/types/deque.bend as E # Runs ops left to right; observations are accumulated newest-first. def run_acc(~T: Data, ops: List<&2, E.Op>, st: Deque & List<&2, E.Obs>) -> Deque & List<&2, E.Obs>: match ops: case Nil{}: st case Con{op, rest}: run_acc(~T, rest, step_acc(~T, op, st)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/containers/deque.bend&name=Deque https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/containers/deque.bend&name=step_acc https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/containers/types/deque.bend&name=Obs https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/containers/types/deque.bend&name=Op