def wire.ok.of

emerging-ezhttp@0.21.0.0 · src/wirespec.bend:155

import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespec
import Base

155# whether a status is success (0)
156def wire.ok.of(m: Maybe<&2, U32>) -> Bool:
157  match m:
158    case None{}:
159      False{}
160    case Some{n}:
161      U32.is_eq(n, 0)

Uses (4)

Used by (1)