Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/lib/driver.ml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ let round ~first : 'a -> 'a =
+> flow
+> specialize
+> eval
+> Unboxing.f
+> inline
+> deadcode

Expand Down
8 changes: 8 additions & 0 deletions compiler/lib/stdlib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ module List = struct

let append l1 l2 = count_append l1 l2 0 [@@if ocaml_version < (5, 1, 0)]

let find_index p =
let rec aux i = function
| [] -> None
| a :: l -> if p a then Some i else aux (i + 1) l
in
aux 0
[@@if ocaml_version < (5, 1, 0)]

let group l ~f =
let rec loop (l : 'a list) (this_group : 'a list) (acc : 'a list list) : 'a list list
=
Expand Down
Loading
Loading