Comment Comment by reddit_clone There is a big difference in there I think.'for' loop is mutating.Using 'reduce', you can do the same functionally. In some (somewhat) purely functional languages, there is no choice. parent reddit_clone 1 month ago
'for' loop is mutating.
Using 'reduce', you can do the same functionally. In some (somewhat) purely functional languages, there is no choice.