From 18fdc0cb34e7762eb9947759e347c49469a8331b Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Fri, 13 Jan 2023 00:02:20 +0100 Subject: [PATCH] Rename utils --- ocaml/1.ml | 2 +- ocaml/2.ml | 2 +- ocaml/3.ml | 2 +- ocaml/lib/{file_utils.ml => utils.ml} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename ocaml/lib/{file_utils.ml => utils.ml} (100%) diff --git a/ocaml/1.ml b/ocaml/1.ml index ddba180..4375de1 100644 --- a/ocaml/1.ml +++ b/ocaml/1.ml @@ -1,5 +1,5 @@ #load "str.cma" ;; -#use "lib/file_utils.ml" ;; +#use "lib/utils.ml" ;; let top n calories = let topn = List.filteri (fun i _ -> i < n) calories in diff --git a/ocaml/2.ml b/ocaml/2.ml index a23d35a..c827be0 100644 --- a/ocaml/2.ml +++ b/ocaml/2.ml @@ -1,4 +1,4 @@ -#use "lib/file_utils.ml" ;; +#use "lib/utils.ml" ;; type shape = Rock | Paper | Scissors type outcome = Win | Tie | Loss diff --git a/ocaml/3.ml b/ocaml/3.ml index ce2ceb9..f2874e2 100644 --- a/ocaml/3.ml +++ b/ocaml/3.ml @@ -1,4 +1,4 @@ -#use "lib/file_utils.ml" ;; +#use "lib/utils.ml" ;; let priority_of_item c = (* ASCII lower case is 97-122, upper case is 65-90 *) diff --git a/ocaml/lib/file_utils.ml b/ocaml/lib/utils.ml similarity index 100% rename from ocaml/lib/file_utils.ml rename to ocaml/lib/utils.ml