-
Other constructors can be provided in the lambda arguments as follows:
However trying to do so with tuples doesn't seem to work:
not even in canonical form or wrapping the argument in parentheses:
Is this intentional? It is possible to just de-construct the tuple inside the lambda of course. And as a side note perhaps related, I find the fact that you can't wrap arguments in parenthesis surprising, perhaps it is also intentional?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The cases you give are not canonical form. What you probably mean was functional notation just for
|
Beta Was this translation helpful? Give feedback.
-
The The |
Beta Was this translation helpful? Give feedback.
The cases you give are not canonical form. What you probably mean was functional notation just for
\
alone. That would be