summaryrefslogtreecommitdiff
path: root/src/Identifiers.ml
diff options
context:
space:
mode:
authorSon Ho2021-11-22 19:52:49 +0100
committerSon Ho2021-11-22 19:52:49 +0100
commit115960297c2f9cf839d51232dd2961e0d4817657 (patch)
treea1d05c1f1692e5c8230cca18c49641e297dbbbc6 /src/Identifiers.ml
parent402a5405f5e622cd09b6dafbe630bc4348ebe681 (diff)
Make progress on {read,write}_path
Diffstat (limited to 'src/Identifiers.ml')
-rw-r--r--src/Identifiers.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Identifiers.ml b/src/Identifiers.ml
index 51a22072..04c5427b 100644
--- a/src/Identifiers.ml
+++ b/src/Identifiers.ml
@@ -21,6 +21,8 @@ module type Id = sig
val vector_of_list : 'a list -> 'a vector
+ val nth_opt : 'a vector -> id -> 'a option
+
module Set : Set.S with type elt = id
val set_to_string : Set.t -> string
@@ -59,6 +61,8 @@ module IdGen () : Id = struct
let vector_of_list v = v
+ let nth_opt v id = List.nth_opt v id
+
module Set = Set.Make (struct
type t = id