leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

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: May 02 2025 at 03:31 UTC

Theme Simple by wildflame © 2016 Powered by jekyll