#functional-programming
Read more stories on Hashnode
Articles with this tag
There is only a subtle difference between reduce and fold. Fold requires an initial value, whereas reduce doesn’t need one. Reduce example: scala> (1...