Introduce | pipe operator #126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The goal is to be able to use any function as an infix, like so:
(most languages spell it out as
x | mod 2, but I think for us stylistically it's nicer to keep the|associated with the function name.)x |mod 2is equivalent tomod x 2. In the future we can think about extending this with a magic_syntax, such that you can writex |mod 2 _and getmod 2 x.