3 ms·
That is still a right fold! Your lambda just needs to accept the arguments as (elem, acc) instead of (acc, elem).
by josephcsible 4y ago
That is still a right fold! Your lambda just needs to accept the arguments as (elem, acc) instead of (acc, elem).