summaryrefslogtreecommitdiff
path: root/2024/OCaml/lib/grid/grid.ml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-11-29 20:23:02 +0100
committerDJ O'Leary <dijitol@proton.me>2025-11-29 20:23:02 +0100
commit4c3a50166bf0f78ce89459c352cc1c6536a8b96d (patch)
tree02e4b66a1435680ef1e92bf82576747b27f16447 /2024/OCaml/lib/grid/grid.ml
parentbe2f8528b3829f8263507da301812d852297c168 (diff)
chore: make language folders snake_case
Diffstat (limited to '2024/OCaml/lib/grid/grid.ml')
-rw-r--r--2024/OCaml/lib/grid/grid.ml14
1 files changed, 0 insertions, 14 deletions
diff --git a/2024/OCaml/lib/grid/grid.ml b/2024/OCaml/lib/grid/grid.ml
deleted file mode 100644
index 0d6bc4c..0000000
--- a/2024/OCaml/lib/grid/grid.ml
+++ /dev/null
@@ -1,14 +0,0 @@
-let rec to_grid_aux tokens max_width acc =
- match tokens with
- | [] -> acc
- | h :: t ->
- let new_cell = Cell.create h |> Cell.with_left acc in
- let new_acc = acc |> Cell.with_right new_cell in
- to_grid_aux t max_width new_acc
-
-let to_grid tokens max_width : Cell.t option =
- match tokens with
- | [] -> None
- | h :: t ->
- let first_cell = Cell.create h in
- Some (to_grid_aux t max_width first_cell)