Element definition
With Pair
Pair
A Pair
(constructed with the =>
operator) can be treated as a cons cell, and thus used to build a linked lists:
However, because this is not the primary purpose of the Pair
type, it suffers from the following limitations:
With custom type
For more flexibility, one would create a custom type:
Last updated