def step
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
158# The next index: one forward when up, one back when not.
159def step(+up: Bool, +i: U32) -> U32:
160 Bool.pick(U32, up, (i + 1 : U32), (i - 1 : U32))
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
158# The next index: one forward when up, one back when not.
159def step(+up: Bool, +i: U32) -> U32:
160 Bool.pick(U32, up, (i + 1 : U32), (i - 1 : U32))