|
|
|
|
|
by strken
3426 days ago
|
|
I haven't used Scala for years, but fold[0] is one of the functional programming building blocks. It's applicable across languages and data types. It looks like syntactic sugar here, but it's really not. It's just a function that is more commonly used on collections with more than one item. [0] also reduce, inject, aggregate, and other synonyms, because naming is hard |
|