def first_visible

near-v-framework@0.4.0.0 · general/compound/ops.bend:59

import near-v-framework@0.4.0.0/general/compound/ops.bend as Ops
import Base

59def first_visible(cands: List<&2, String>, +visible: List<&2, String>) -> String:
60  match cands:
61    case []:
62      ""
63    case +c <> rest:
64      visible_or(has(visible, c), c, first_visible(rest, visible))

Uses (4)

Used by (1)