
Nov. 30, 2021
11:08 p.m.
How about using the typing return arrow -> to indicate the return of the preceding goes as a first parameter in the function: 1 -> add(2) I don’t like the fact this is used only as a first parameter. What if you want the preceding output to go as a second parameter? Abdulla Sent from my iPhone
On 29 Nov 2021, at 9:55 PM, Chris Angelico <rosuav@gmail.com> wrote:
1 |> add(2)
is exactly equivalent to this:
add(1, 2)
then neither the iterator nor the consumer needs to be aware of the new protocol.
I don't like that syntax though, and this will live or die on a good syntax.