def at.if

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

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

476def at.if(fits: Bool, +len: U32, buf: Array<U32>, +needle: String, +j: U32) -> Bytes & Bool:
477  match fits:
478    case True{}:
479      at.fin(len, at(buf, needle, j))
480    case False{}:
481      (Bytes{len, buf}, False{})

Uses (9)

Used by (2)