mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
fixity fix
This commit is contained in:
parent
40ef76f79f
commit
846494e1a2
1 changed files with 3 additions and 4 deletions
|
|
@ -177,11 +177,10 @@ let[@tail_mod_cons] rec filter f l =
|
||||||
| [] -> []
|
| [] -> []
|
||||||
| x :: tl ->
|
| x :: tl ->
|
||||||
let keep = f x in
|
let keep = f x in
|
||||||
let tl = filter f tl in
|
|
||||||
if keep then
|
if keep then
|
||||||
x :: tl
|
x :: filter f tl
|
||||||
else
|
else
|
||||||
tl
|
filter f tl
|
||||||
|
|
||||||
[@@@else_]
|
[@@@else_]
|
||||||
(* stdlib's filter uses TRMC after 5.1 *)
|
(* stdlib's filter uses TRMC after 5.1 *)
|
||||||
|
|
@ -908,7 +907,7 @@ let take_while p l =
|
||||||
|
|
||||||
[@@@else_]
|
[@@@else_]
|
||||||
|
|
||||||
let rec take_while p l =
|
let[@tail_mod_cons] rec take_while p l =
|
||||||
match l with
|
match l with
|
||||||
| [] -> []
|
| [] -> []
|
||||||
| x :: l' ->
|
| x :: l' ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue