def preferred2

cswap-bend-cli@0.1.0.0 · switch.bend:191

import cswap-bend-cli@0.1.0.0/switch.bend as Switch
import Base

191def preferred2(+active: Maybe<&2, String>, +slots: List<&2, String>) -> Maybe<&2, String>:
192  match active:
193    case Some{a}:
194      Some{a}
195    case None{}:
196      List.head(&2, String, slots)

Uses (4)

Used by (1)