Re:When Functional Programming Isn't Functional
by kangoo1707 on Monday April 02, 2018 @02:27AM
(#16732734)
The two versions that you give do not return the same thing. the FP one returns a list, while the imperative one returns a number
[ Parent
| on HN ]