better solution slightly

This commit is contained in:
SowinskiBraeden committed 2026-02-04 18:03:45 -08:00
1 parent b6570114cb
commit 9d6617daee
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ let test_digits () =
list [d]
*)
let int_of_digits d =
(List.fold_left (fun x acc -> (x + acc) * 10) 0 d) / 10;;
List.fold_left (fun x acc -> x * 10 + acc) 0 d;;
(**/**)
let test_int_of_digits () =