def find.at

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

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

448def find.at(none: Bool, +len: U32, buf: Array<U32>, +needle: String, +i: U32, +f: U32, +up: Bool) -> Bytes & Maybe<&2, U32>:
449  match none:
450    case True{}:
451      (Bytes{len, buf}, None{})
452    case False{}:
453      find.fin(len, find.go(U32.to_nat(f), at(buf, needle, i), needle, i, up))

Uses (12)

Used by (2)