foldLeft and foldRight, a Scala language concept
Last updated
A 'fold' allows you to perform the equivalent of a for-loop, but with a lot less code.
There's more!
To see the rest of the Scala concept, and all our other concepts for free, Register (free).