def set.if
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
146def set.if(ok: Bool, +len: U32, buf: Array<U32>, +i: U32, +v: U32) -> Bytes:
147 match ok:
148 case True{}:
149 Bytes{len, poke(buf, i, v)}
150 case False{}:
151 Bytes{len, buf}