All of the examples I've seen so far create a "wrapper" function around Basics.+
and then partially apply that:
sum x y =
x + y
plusOne =
sum 1
However, I'm sure that there's a way to avoid the extra wrapping.
Wrap it in parenthesis
plusOne =
(+) 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With