![]() Currently, pattern-matching on 'Pair' is handled by treating Pair as a record, which comes as slightly odd given that it isn't actually a record and isn't user-defined. Thus now, every use of a record must distinguish between Pairs and other kind of records -- which screams for another variant constructor instead. We cannot use `Tuple` either for this, because then we have no ways to tell 2-tuples apart from pairs, which is the whole point here. So the most sensical thing to do is to define a new pattern `Pair` which is akin to tuples, but simpler since we know the number of elements and it's always 2. |
||
---|---|---|
.github | ||
aikup | ||
crates | ||
examples | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
flake.lock | ||
flake.nix |
README.md
Installation
How to use
For more information please see the user manual.
Contributing
Want to contribute? See CONTRIBUTING.md to know how.
Note
The name comes from Howard Aiken, an American physicist and a pioneer in computing.