def step

bend-kit-bytes@0.3.3.0 · bytes.bend:158

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import 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))

Uses (5)

Used by (3)