def Acc.put.go

bend-kube-runtime@0.2.0.0 · src/exec.bend:168

import bend-kube-runtime@0.2.0.0/src/exec.bend as Exec
import Base
import bend-kube-runtime@0.2.0.0/src/ws.bend as W

168def Acc.put.go(st: W.WSt, +chan: U32, bs: List<&2, U32>, +o: List<&2, U32>, +e: List<&2, U32>,
169  +s: List<&2, U32>, closed: Bool, one: Bool, two: Bool, three: Bool) -> Acc:
170  match one two three:
171    case True{} _ _:
172      Acc{st, List.append(&2, U32, List.reverse(&2, U32, bs), o), e, s, chan, closed}
173    case False{} True{} _:
174      Acc{st, o, List.append(&2, U32, List.reverse(&2, U32, bs), e), s, chan, closed}
175    case False{} False{} True{}:
176      Acc{st, o, e, List.append(&2, U32, List.reverse(&2, U32, bs), s), chan, closed}
177    case False{} False{} False{}:
178      Acc{st, o, e, s, chan, closed}

Uses (7)

Used by (1)