def result

emerging-ezjson@1.3.0.0 · src/parse.bend:236

import emerging-ezjson@1.3.0.0/src/parse.bend as Parse
import Base
import emerging-ezjson@1.3.0.0/src/value.bend as V

236# the root, when nothing went wrong and nothing stayed open
237def result(bad: Bool, stack: List<&2, Frame>, root: Maybe<&2, V.Json>) -> Maybe<&2, V.Json>:
238  match bad stack root:
239    case False{} Nil{} Some{j}:
240      Some{j}
241    case b s r:
242      None{}

Uses (5)

Used by (1)