2 comments

[ 3.4 ms ] story [ 19.5 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).