3 ms·
How would you write f((x y)z) in Haskell?
by chirau 10y ago
How would you write f((x y)z) in Haskell?
- deleted 10y ago[deleted]
- scriptdevil 10y agof $ 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)
- tromp 10y agof (x y z)
- vq 10y agoIf by (x y) you mean x(y) then I would write it like this: f (x y) z