diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-08-19 10:12:13 +0200 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-08-19 10:12:13 +0200 |
| commit | e397abe6811794661dd6a0046e1a63e2b36095e9 (patch) | |
| tree | b5a978e9638659a33a077934498ef97c25612a27 /2024 | |
| parent | c552e71ab7906d22a970885cf056ad62adc78477 (diff) | |
style: formatting
Diffstat (limited to '2024')
| -rw-r--r-- | 2024/OCaml/lib/day_01/part_02.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/2024/OCaml/lib/day_01/part_02.ml b/2024/OCaml/lib/day_01/part_02.ml index 532b344..25c8b7d 100644 --- a/2024/OCaml/lib/day_01/part_02.ml +++ b/2024/OCaml/lib/day_01/part_02.ml @@ -10,7 +10,8 @@ let rec count_occurrances_help element acc lst = let count_occurrances element lst = count_occurrances_help element 0 lst let solve left right = - List.map (fun x -> x * count_occurrances x right) left |> List.fold_left ( + ) 0 + List.map (fun x -> x * count_occurrances x right) left + |> List.fold_left ( + ) 0 let left line = let pos = 0 in |
