Skip to content

Commit

Permalink
Merge pull request #3 from emillon/tail-recursive-list-map
Browse files Browse the repository at this point in the history
Use tail-recursive List.map
  • Loading branch information
rgrinberg authored Jun 16, 2020
2 parents 02ce4f0 + 5017c22 commit c862e1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pp.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
module List = ListLabels
module List = struct
include ListLabels

let map ~f t = rev (rev_map ~f t)
end

module String = StringLabels

type +'a t =
Expand Down

0 comments on commit c862e1f

Please sign in to comment.