icon-cookie
The website uses cookies to optimize your user experience. Using this website grants us the permission to collect certain information essential to the provision of our services to you, but you may change the cookie settings within your browser any time you wish. Learn more
I agree
Summary | 4 Annotations
Now you're really functional: no side effects or vars in sight.
2018/10/02 11:03
Preferring methods without side effects encourages you to design programs where side-effecting code is minimized.
2018/10/02 12:41
The max method, which you can invoke on any Int, returns the greater of the value on which it was invoked and the value passed to it.
2018/10/02 12:51
The reduceLeft method applies the passed function to the first two elements in lines, then applies it to the result of the first application and the next element in lines, and so on, all the way through the list
2018/10/02 12:53