def availability
bendvy-ecs-core@0.1.0.4 · ordinary_optional_resource.bend:36
import bendvy-ecs-core@0.1.0.4/ordinary_optional_resource.bend as OrdinaryOptionalResource
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as Schema
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product
36def availability(~S:Data,~R:Type,~P:Type,~Rest:Type,~identity:Schema.Resource<S,P>,~lens:Product.Lens<R,Slot<S,P,identity>,Rest>,resource:R) -> R & List<&2,String>:
37 slot_available(~S,~R,~P,~Rest,~identity,~lens,Product.get_field(~R,~Slot<S,P,identity>,~Rest,lens)(resource))