def preferred2
import cswap-bend-cli@0.1.0.0/switch.bend as Switchimport 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)