How to automatically apply rules to list of elements?
For convenience it is would be useful to apply rule automatically to single objects or list of objects.
Asked by Sven Stork on 15 January 2013 at 23:18
1 Answer
You can automatically apply rules using the map function for lists. The following example shows how to enable automatic type computation of lists by overloading the type-of rule:
Answered by Sven Stork on 15 January 2013 at 23:19
type-of = map(type-of)