Interval<'a> Type

Closed interval [Start,End]

Union cases

Union case Description

Closed('a, 'a)

Full Usage: Closed('a, 'a)

Parameters:
    Item1 : 'a
    Item2 : 'a

[start,end] includes endpoints

Item1 : 'a
Item2 : 'a

Empty

Full Usage: Empty

LeftOpen('a, 'a)

Full Usage: LeftOpen('a, 'a)

Parameters:
    Item1 : 'a
    Item2 : 'a

(start,end] includes right endpoints

Item1 : 'a
Item2 : 'a

Open('a, 'a)

Full Usage: Open('a, 'a)

Parameters:
    Item1 : 'a
    Item2 : 'a

(start,end) endpoints are excluded

Item1 : 'a
Item2 : 'a

RightOpen('a, 'a)

Full Usage: RightOpen('a, 'a)

Parameters:
    Item1 : 'a
    Item2 : 'a

[start,end) includes leftendpoints

Item1 : 'a
Item2 : 'a

Instance members

Instance member Description

this.GetEnd

Full Usage: this.GetEnd

Returns: 'a
Modifiers: inline
Returns: 'a

this.GetStart

Full Usage: this.GetStart

Returns: 'a
Modifiers: inline
Returns: 'a

this.ToTuple

Full Usage: this.ToTuple

Returns: 'a * 'a
Modifiers: inline
Returns: 'a * 'a

this.TryEnd

Full Usage: this.TryEnd

Returns: 'a option
Modifiers: inline
Returns: 'a option

this.TryStart

Full Usage: this.TryStart

Returns: 'a option
Modifiers: inline
Returns: 'a option

this.TryToTuple

Full Usage: this.TryToTuple

Returns: ('a * 'a) option
Modifiers: inline
Returns: ('a * 'a) option

this.liesInInterval value

Full Usage: this.liesInInterval value

Parameters:
    value : 'a

Returns: bool
Modifiers: inline

Does the given value lie in the interval or not.

value : 'a
Returns: bool

Static members

Static member Description

Interval.CreateClosed(min, max)

Full Usage: Interval.CreateClosed(min, max)

Parameters:
    min : 'b
    max : 'b

Returns: Interval<'b>
Modifiers: inline
min : 'b
max : 'b
Returns: Interval<'b>

Interval.CreateLeftOpen(min, max)

Full Usage: Interval.CreateLeftOpen(min, max)

Parameters:
    min : 'a
    max : 'a

Returns: Interval<'a>
Modifiers: inline
min : 'a
max : 'a
Returns: Interval<'a>

Interval.CreateOpen(min, max)

Full Usage: Interval.CreateOpen(min, max)

Parameters:
    min : 'c
    max : 'c

Returns: Interval<'c>
Modifiers: inline
min : 'c
max : 'c
Returns: Interval<'c>

Interval.CreateRightOpen(min, max)

Full Usage: Interval.CreateRightOpen(min, max)

Parameters:
    min : 'a
    max : 'a

Returns: Interval<'a>
Modifiers: inline
min : 'a
max : 'a
Returns: Interval<'a>

Interval.ofSeq source

Full Usage: Interval.ofSeq source

Parameters:
    source : seq<'a>

Returns: Interval<'a>
Modifiers: inline
source : seq<'a>
Returns: Interval<'a>

Interval.ofSeqBy projection source

Full Usage: Interval.ofSeqBy projection source

Parameters:
    projection : 'a -> 'b
    source : seq<'a>

Returns: Interval<'a>
Modifiers: inline
projection : 'a -> 'b
source : seq<'a>
Returns: Interval<'a>