def codings.ok

bend-kit-http@0.38.2.0 · http.bend:4256

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

4256# An effect on empty input fails with ENOENT only when its library does not load.
4257def codings.ok(r: Result<&1, &1, U32 & String, Bytes.Bytes>) -> Bool:
4258  match r:
4259    case Fail{(+c, why)}:
4260      Bool.not(U32.is_eq(c, 2))
4261    case Done{p}:
4262      True{}

Uses (9)

Used by (1)