def is_active.of

cswap-bend-cli@0.1.0.0 · profview.bend:20

import cswap-bend-cli@0.1.0.0/profview.bend as Profview
import 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")

Uses (4)

Used by (1)