def in_names

bend-schema-lib@0.4.1.0 · core.bend:239

import bend-schema-lib@0.4.1.0/core.bend as Core
import Base

239def in_names(+x: String, names: List<&2, String>) -> Bool:
240  match names:
241    case Nil{}:
242      False{}
243    case n <> t:
244      Bool.or(String.eq(x, n), in_names(x, t))

Uses (5)

Used by (8)