package spotlib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Spotlib.IntRangeSource

Sourcetype t

integer range

Sourceval empty : t

empty range

Sourceval is_empty : t -> bool
Sourceval make : int -> int -> t

Make a range between 2 integers, inclusive. If the second int is smaller than the first, make returns empty.

Sourceval iter : (int -> unit) -> t -> unit

Iteration

Sourceval map : (int -> 'a) -> t -> 'a list

Map to list

Sourceval fold_left : ('acc -> int -> 'acc) -> 'acc -> t -> 'acc

Folding from left

Sourceval range : t -> (int * int) option

Get the integer range. Returns None if the range is empty

OCaml

Innovation. Community. Security.