def container

near-architecture@0.9.1.0 · arc.bend:414

import near-architecture@0.9.1.0/arc.bend as Arc
import Base

414# The container with key `k` (an empty one when `k` is unknown; well_formed rules that out).
415def container(+k: String, xs: List<&2, Container>) -> Container:
416  match xs:
417    case []:
418      none()
419    case +c <> rest:
420      pick_c(str_eq(k, ckey(c)), c, container(k, rest))

Uses (7)

Used by (4)