- Index
- »
- point
- »
- func:toEquips
def
func:toEquips
toEquips(recs)
Map a set of recs to to a grid of equips
. The recs
parameter may be any value accepted by toRecList()
. Return empty grid if no mapping is found. The following mappings are supported:
- recs with
equip
tag are mapped as themselves - recs with
equipRef
tag are mapped to their parent equip - recs with
site
are mapped to equip with parentsiteRef
- recs with
space
are mapped to equip with parentspaceRef
Examples:
read(site).toEquips // return children equip within site read(space).toEquips // return children equip within space read(equip).toEquips // return equip itself read(point).toEquips // return point's parent equip