When should I use reduceLeft
, reduceRight
, foldLeft
, foldRight
, scanLeft
or scanRight
?
I want an intuition/overview of their differences – possibly with some simple examples.
When should I use reduceLeft
, reduceRight
, foldLeft
, foldRight
, scanLeft
or scanRight
?
I want an intuition/overview of their differences – possibly with some simple examples.