Interval<'a> Type
Represents an interval between two values of type 'a, which can be either inclusive or exclusive.
Union cases
| Union case | Description |
Full Usage:
Closed(intervalStart, intervalEnd)
Parameters:
'a
-
The start value of the interval
intervalEnd : 'a
-
The end value of the interval
|
|
Full Usage:
Empty
|
|
Full Usage:
LeftOpen(intervalStart, intervalEnd)
Parameters:
'a
-
The start value of the interval
intervalEnd : 'a
-
The end value of the interval
|
|
Full Usage:
Open(intervalStart, intervalEnd)
Parameters:
'a
-
The start value of the interval
intervalEnd : 'a
-
The end value of the interval
|
|
Full Usage:
RightOpen(intervalStart, intervalEnd)
Parameters:
'a
-
The start value of the interval
intervalEnd : 'a
-
The end value of the interval
|
Instance members
| Instance member | Description | ||
Full Usage:
this.GetEnd
Returns: 'a
Modifiers: inline |
Example
val interval: obj
|
||
Full Usage:
this.GetStart
Returns: 'a
Modifiers: inline |
Example
val interval: obj
|
||
Full Usage:
this.ToTuple
Returns: 'a * 'a
Modifiers: inline |
Example
val interval: obj
|
||
Full Usage:
this.TryEnd
Returns: 'a option
Modifiers: inline |
|||
Full Usage:
this.TryStart
Returns: 'a option
Modifiers: inline |
|||
Full Usage:
this.TryToTuple
Returns: ('a * 'a) option
Modifiers: inline |
Example
val interval: obj
|
||
Full Usage:
this.liesInInterval value
Parameters:
'a
-
The value to check for containment in the interval
Returns: bool
True if the value is contained in the interval, false otherwise
Modifiers: inline |
Example
val interval: obj
|
Static members
| Static member | Description | ||
Full Usage:
Interval.CreateClosed(min, max)
Parameters:
'a
-
The start value of the interval
max : 'a
-
The end value of the interval
Returns: Interval<'a>
A closed interval
Modifiers: inline |
|
||
Full Usage:
Interval.CreateLeftOpen(min, max)
Parameters:
'a
-
The start value of the interval
max : 'a
-
The end value of the interval
Returns: Interval<'a>
A left-open interval
Modifiers: inline |
|
||
Full Usage:
Interval.CreateOpen(min, max)
Parameters:
'a
-
The start value of the interval
max : 'a
-
The end value of the interval
Returns: Interval<'a>
An open interval
Modifiers: inline |
|
||
Full Usage:
Interval.CreateRightOpen(min, max)
Parameters:
'a
-
The start value of the interval
max : 'a
-
The end value of the interval
Returns: Interval<'a>
A right-open interval
Modifiers: inline |
|
||
Full Usage:
Interval.ofSeq source
Parameters:
'a seq
-
The input sequence of values
Returns: Interval<'a>
A closed interval containing the minimum and maximum values
Modifiers: inline |
Example
|
||
Full Usage:
Interval.ofSeqBy projection source
Parameters:
'a -> 'b
-
A function to project each element of the sequence to the desired type
source : 'a seq
-
The input sequence of values
Returns: Interval<'a>
A closed interval containing the minimum and maximum projected values
Modifiers: inline |
Example
Multiple items
val int: value: 'T -> int (requires member op_Explicit) -------------------- type int = int32 -------------------- type int<'Measure> = int |
FSharp.Stats