10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-05 05:33:56 +01:00
quantum_package/ocaml/Range.mli

11 lines
314 B
OCaml
Raw Normal View History

2017-08-18 19:43:52 +02:00
type t = int list [@@deriving sexp]
2014-10-27 01:14:18 +01:00
(** 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