def array.at

ezx@1.11.0.0 · src/ws/workspace.bend:433

import ezx@1.11.0.0/src/ws/workspace.bend as Workspace
import Base
import emerging-eztoml@0.9.0.0/main.bend as E

433# this pair's array when its key is the key, otherwise the rest's
434def array.at(hit: Bool, val: E.Val, rest: Maybe<&2, List<&2, String>>) -> Maybe<&2, List<&2, String>>:
435  match hit:
436    case True{}:
437      array.val(val)
438    case False{}:
439      rest

Uses (6)

Used by (1)