|
|
|
|
|
by ncd
3667 days ago
|
|
It's a function that takes a String and returns a new function which takes a String and returns a String. All functions in Haskell/Elm are arity 1. So in order to construct functions that accept more than one argument, you actually return successive functions that apply successive arguments, known as currying. |
|
Does this kind of 1/arity have performance implications for Haskell? Does the compiler lower (or is it rise? inline?) the functions to produce efficient machine code?