The Where Object

The Where object is used in clauses defined in functions. It provides a way to assign values to additional variables beyond the ones that are defined by the pattern match.


The Where object doesn't really introduce any new functionality. It's really just syntactic sugar for this expression:

The second paramter of the Where object should contain an Assign object, as in the example above, or a List of Assign objects.

This is an example of a Where term with a list in the second parameter:

The left-hand side of the equality in a Where object can contain a more complex pattern than just a single variable. For example: