I couldn't find a function for folding a list without a default value in either Js.List or Belt.List. I was expecting to find a method with signature of:
(List('a), (a', a' => a')) => 'a
It would be nice for this to be included in the std.lib and I hope I've raised this in the correct place!
I couldn't find a function for folding a list without a default value in either
Js.List
orBelt.List
. I was expecting to find a method with signature of:(List('a), (a', a' => a')) => 'a
It would be nice for this to be included in the std.lib and I hope I've raised this in the correct place!