def row.of

bend-kit-commands@0.4.0.0 · commands.bend:229

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

229def row.of(row: Bool, +read: U32) -> Run(Maybe<Bytes.Bytes>):
230  match row:
231    case False{}:
232      Run.pure(Maybe<Bytes.Bytes>, None{})
233    case True{}:
234      do Run<Maybe<Bytes.Bytes>>:
235        v : Bytes.Bytes <- column(read, 0)
236        return Some{v}

Uses (8)

Used by (1)