RedPRL / ocaml-bwd

🔙 Backward lists for OCaml
https://ocaml.org/p/bwd
Apache License 2.0
21 stars 2 forks source link

✂️ Make `partition` and `partition_map` tail-recursive #23

Closed favonia closed 1 year ago

favonia commented 1 year ago

I wonder why split was not made tail-recursive while these two functions were? But anyway, it's not difficult to mimic the standard library.