![]() |
Operations on tuples | ![]() |
Forms a tuple from the expressions expr-1 until expr-n.
Tests whether a given expression expr evaluates to a tuple.
If expr is a tuple, then we return its arity. For instance, <length|<tuple|hop|hola>> evaluates to 2.
Returns the element with index which (counting from zero) in tuple; more generally, tuple may be any compound tree. For instance, <look-up|<tuple|a|b|c>|1> yields b.
Return the subtuple of expr starting at position start and ending at position end (not included). For instance, <range|<tuple|a|hola|hop|b|c>|2|4> evaluates to .
This primitive may be used to concatenate several tuples expr-1 until expr-n. For instance, <merge|<tuple|1|2>|<tuple|3|4|5>> produces .
Returns true if the evaluated expr occurs as a subtree of the (unevaluated) value of the macro argument with name var, and false otherwise.