def has_slot

cswap-bend-cli@0.1.0.0 · importu.bend:251

import cswap-bend-cli@0.1.0.0/importu.bend as Importu
import Base

251def has_slot(+s: String, xs: List<&2, String>) -> Bool:
252  match xs:
253    case Nil{}:
254      False{}
255    case Con{h, t}:
256      String.eq(h, s) || has_slot(s, t)

Uses (5)

Used by (2)