def is_active.of
import cswap-bend-cli@0.1.0.0/profview.bend as Profviewimport Base
20def is_active.of(+a: Maybe<&2, String>, +name: String) -> Bool:
21 match a:
22 case Some{x}:
23 String.eq(x, name)
24 case None{}:
25 String.eq(name, "default")