mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
potential bugfix for Enum.to_rev_list
This commit is contained in:
parent
a3c7b70e53
commit
101fc8a01e
1 changed files with 1 additions and 1 deletions
2
enum.ml
2
enum.ml
|
|
@ -170,7 +170,7 @@ let to_list enum =
|
|||
let to_rev_list enum =
|
||||
let rec fold acc gen =
|
||||
let acc', stop =
|
||||
try gen () :: acc, true
|
||||
try let x = gen () in x :: acc, true
|
||||
with EOG -> acc, false
|
||||
in if stop then acc' else fold acc' gen
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue