def is_slot
import cswap-bend-cli@0.1.0.0/daemon/view.bend as Viewimport Base
119def is_slot(+active: Maybe<&2, String>, +slot: String) -> Bool:
120 match active:
121 case Some{a}:
122 String.eq(a, slot)
123 case None{}:
124 False{}