from Alvinalexander1 year agoThat code also works, but whether it's readable is subject to debate (depending on your experience with Scala, functional programming, the foldLeft method, your brain, and other factors). Read at Alvinalexander #people #back #specifically #functional-programming[add][|| ... ]