def indexed.choose

bend-kit-http2@0.4.0.0 · hpack.bend:219

import bend-kit-http2@0.4.0.0/hpack.bend as Hpack
import Base

219def indexed.choose(s: Bool, +i: U32, xs: List<&2, Field>) -> Maybe<&2, Field>:
220  match s:
221    case True{}:
222      indexed.static(U32.is_ne(i, 0), i)
223    case False{}:
224      table.at(xs, U32.to_nat((i - 62 : U32)))

Uses (10)

Used by (1)