Tag Archives: foldLeft

Scala Problem Number Four

Lets solve now the problem number four, from the Scala 99 Problems. This one goes as follows: P04 (*) Find the number of elements of a list. Example: scala> length(List(1, 1, 2, 3, 5, 8)) res0: Int = 6 Lets … Continue reading

Posted in scala | Tagged , , , , , , | Leave a comment