def selected
bendvy-ecs-core@0.1.0.4 · ordinary_app_access.bend:79
import bendvy-ecs-core@0.1.0.4/ordinary_app_access.bend as OrdinaryAppAccess
import Base
79def selected(found:Bool,category:Category,key:String,uses:List<&2,Use>,other:Category,otherKey:String,otherUses:List<&2,Use>,rest:List<&2,Entry>,tail:Unit -> List<&2,Entry>) -> List<&2,Entry>:
80 match found:
81 case True{}:Entry{other,otherKey,List.append(&2,Use,otherUses,uses)} <> rest
82 case False{}:Entry{other,otherKey,otherUses} <> tail(Unit{})