10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 20:34:58 +01:00
QuantumPackage/ocaml/Range.mli

12 lines
345 B
OCaml
Raw Normal View History

2019-01-25 11:39:31 +01:00
type t = int list [@@deriving sexp]
(** A range is a sorted list of ints in an interval.
It is created using a string :
"[a-b]" : range between a and b (included)
"[a]" : the list with only one integer a
"a" : equivalent to "[a]"
*)
val of_string : string -> t
val to_string : t -> string
val to_int_list : t -> int list