From 538693d9f4c4a9d2f7e8ec08a51ef71004793da3 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Tue, 6 Dec 2022 04:19:40 +0100 Subject: [PATCH] reverse input list after reading (recursive makes reverse) --- lib/utils.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.ml b/lib/utils.ml index 132e49e..5722ce1 100644 --- a/lib/utils.ml +++ b/lib/utils.ml @@ -7,7 +7,7 @@ let read_file name = match try_read () with | Some s -> aux (s::acc) | None -> close_in ic; acc in - aux [] + List.rev (aux []) module CS = Set.Make(Char);;