Introduction to Elm, v2 Nested Function Expressions
Transcript from the "Nested Function Expressions" Lesson
[00:00:38] So in Elm, functions are called by using whitespace. So just the fact that I have pluralize followed by some whitespace followed by the arguments means I'm calling pluralize. The purpose of this parenthesis here is to ambiguate between this nested function call and the outer function call of test.
[00:00:57] So this right here, is a function call to text, a function needs test, passing one argument, and that one argument is a result of calling pluralize passing leaf, leaves and one. If we did not have the parenthesis there, this would be a function called to text passing for arguments.