Zulip Chat Archive
Stream: new members
Topic: array.rev_foldl
Jason Orendorff (Jun 23 2020 at 15:27):
array.rev_foldl
seems like a weird name for that function. It's basically a right fold, right? Why not call it foldr
?
Jason Orendorff (Jun 23 2020 at 15:32):
While I'm here: array.foldl
has a different type signature from list.foldl
, such that
a.foldl b f = a.to_list.foldl (λ x y, f y x) b
Last updated: Dec 20 2023 at 11:08 UTC