Re:Not Lisp again (2009)
by chirau on Tuesday May 02, 2017 @01:15PM
(#14248321)
How would you write f((x y)z) in Haskell?
[ Parent
| on HN ]
Re:Not Lisp again (2009)
by scriptdevil on Tuesday May 02, 2017 @01:47PM
(#14248697)
f $ x y $ z
Basically, f $ x = f x and is applied with lowest operator precedence (0) and is right associative. Therefore, f $ x y $ z = f (x y $ z) = f((x y) z)
If by (x y) you mean x(y) then I would write it like this:
f (x y) z