def at.go

emerging-ezjson@1.3.0.0 · src/value.bend:336

import emerging-ezjson@1.3.0.0/src/value.bend as Value
import Base
import emerging-ezjson@1.3.0.0/src/lazy.bend as Lazy

336def at.go(cells: Json, +idx: U32) -> Json:
337  match cells:
338    case JCons{h, t}:
339      Lazy.stop(Json, U32.is_zero(idx), h, _u => at.go(t, U32.sub(idx, 1)))
340    case other:
341      JNull{}

Uses (5)

Used by (1)