def first_visible
import near-v-framework@0.4.0.0/general/compound/ops.bend as Opsimport 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))