summaryrefslogtreecommitdiff
path: root/2024/OCaml/lib/day_04
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-08-19 00:48:54 +0200
committerDJ O'Leary <dijitol@proton.me>2025-08-19 00:49:06 +0200
commitdbdeb7eaf3b92308e4895eb76dd9f3c5dae5b041 (patch)
treeff33f18e876fd3e4b23492c6241b03061b741de0 /2024/OCaml/lib/day_04
parentbb9b8f0d29195f19df38608af9371a18c45b6d61 (diff)
some change idk
Diffstat (limited to '2024/OCaml/lib/day_04')
-rw-r--r--2024/OCaml/lib/day_04/part_01.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/2024/OCaml/lib/day_04/part_01.ml b/2024/OCaml/lib/day_04/part_01.ml
index 63c1cfd..acb3e3b 100644
--- a/2024/OCaml/lib/day_04/part_01.ml
+++ b/2024/OCaml/lib/day_04/part_01.ml
@@ -6,8 +6,9 @@ type direction = N | NE | E | SE | S | SW | W | NW
let all_directions = [ N; NE; E; SE; S; SW; W; NW ]
let needle = "XMAS"
-(** [calculate_row_offset lines] is the offset used to move between the rows of the concatenated variant of [lines] as though it were a grid.
- Requires: values of [lines] all have the same length *)
+(** [calculate_row_offset lines] is the offset used to move between the rows of
+ the concatenated variant of [lines] as though it were a grid. Requires:
+ values of [lines] all have the same length *)
let calculate_row_offset lines =
match lines with [] -> 0 | h :: _ -> String.length h