It's very good but I would like to code it like haskell without using multiple () in a func for applying eg: "f()()...()". However, it's better than no currying.
I have similar feelings. In Haskell you can implement multiplyBy3 function in a simpler way: multiplyBy3 = (*3) or multiplyBy3 = (*) 3. That's also on of the reasons why Haskell is a great language to pick up the fundamentals of the functional programming paradigm. ;)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's very good but I would like to code it like haskell without using multiple () in a func for applying eg: "f()()...()". However, it's better than no currying.
I have similar feelings. In Haskell you can implement
multiplyBy3
function in a simpler way:multiplyBy3 = (*3)
ormultiplyBy3 = (*) 3
. That's also on of the reasons why Haskell is a great language to pick up the fundamentals of the functional programming paradigm. ;)