has-arity
tuple →
has-arity(
expected: integer
) → boolean
Returns whether the input tuple has exactly the expected number of positions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
expected | integer | Yes | Specifies the required non-negative tuple arity. |
Examples
T(1, 2) | has-arity(2) → #true
Kind: Predicate
Scope: tuple
Aliases: None