"fold": a replacement for "reduce"

monarch_dodra monarchdodra at gmail.com
Thu Mar 27 06:23:26 PDT 2014


On Thursday, 27 March 2014 at 12:48:41 UTC, Simen Kjærås wrote:
> Your new fold (foldl? Should we have foldr as well?)

"fold" (from what I understood) is what you call "foldl". It was 
discussed to not introduce "foldr", as it's just 
"fold!(binaryReverseArgs!Fun)(range.retro);".

I'm not sure I was able to understand what the difference between 
"fold" and "foldl" is...


More information about the Digitalmars-d mailing list