Module SkhcQuery.RangeSource

Operations on ranges.

Sourcetype 'a t =
  1. | Value of 'a
  2. | Range of 'a option * 'a option

type of range values.

Sourceval value : 'a -> 'a t

value v is Value v.

Sourceval range : 'a option -> 'a option -> 'a t

range lhs rhs is Range lhs rhs.

Sourceval to_string : ('a -> string) -> 'a t -> string

to_string some range is the string representation of range using some.

Sourceval matches : 'a t -> 'a -> bool

matches range v tests whether v matches ranges. All extrema borns are included.