summaryrefslogtreecommitdiff
path: root/2025/ocaml/lib/domain/d02p02.ml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
committerDJ O'Leary <dijitol@proton.me>2026-06-26 18:04:09 +0200
commit6d8fb621d1e93b83786890d6d9cb6f0d8defa8ae (patch)
tree17c90d3984c114aa023600cc5bec6f6004b02243 /2025/ocaml/lib/domain/d02p02.ml
parentad4ea5ca4bc9f7540ee1d6a4fa2d881709dc6459 (diff)
refactor!: invert repo directory structure
now is language first
Diffstat (limited to '2025/ocaml/lib/domain/d02p02.ml')
-rw-r--r--2025/ocaml/lib/domain/d02p02.ml29
1 files changed, 0 insertions, 29 deletions
diff --git a/2025/ocaml/lib/domain/d02p02.ml b/2025/ocaml/lib/domain/d02p02.ml
deleted file mode 100644
index b2b55f1..0000000
--- a/2025/ocaml/lib/domain/d02p02.ml
+++ /dev/null
@@ -1,29 +0,0 @@
-module ID = struct
- (** *)
- type t = int
-
- let create num = num
-
- let incr = ( + ) 1
-
- let to_string = string_of_int
-
- let pp id = "ID=" ^ string_of_int id
-end
-
-module Range = struct
- type t = ID.t * ID.t
-
- let create (id1, id2) = (ID.create id1, ID.create id2)
-
- let rec collect range = collect_range_aux [] range
-
- and collect_range_aux lst (id1, id2) =
- match id1 <= id2 with
- | false ->
- lst
- | true ->
- collect_range_aux (id1 :: lst) (ID.incr id1, id2)
-
- let pp (id1, id2) = "(L" ^ ID.pp id1 ^ ", R" ^ ID.pp id2 ^ ")"
-end