2 comments

[ 3.8 ms ] story [ 96.0 ms ] thread
Posting this here, because it tripped me up quite heavily today, with me expecting the wrong behaviour.
That is still a right fold! Your lambda just needs to accept the arguments as (elem, acc) instead of (acc, elem).