Joined July 2015
·

Abdoulaye BARRY

Paris
·
·

Posted to Scala fold, foldLeft, and foldRight over 1 year ago

there is a typo in the first exemple :

numbers.fold(0) { (z, i) => a + i } should be numbers.fold(0) { (z, i) => z + i }.

The "a" variable doesn't exist.

Achievements
1 Karma
0 Total ProTip Views