Ranges<'T> Type
Represents a sub-range of an ordinal index. The range can consist of multiple blocks, i.e. [ 0..9; 20..29 ]. The pairs represent indices of first and last element (inclusively) and we also keep size so that we do not have to recalculate it. For more information, see also the documentation for the `Ranges` module.
Constructors
| Constructor |
Description
|
Full Usage:
Ranges(ranges, ops)
Parameters:
('T * 'T) seq
ops : IRangeKeyOperations<'T>
Returns: Ranges<'T>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.FirstKey
Returns: 'T
|
Returns the first key in the range
|
Full Usage:
this.KeyAtOffset
Parameters:
int64
Returns: 'T
|
Returns the key at the specified offset
|
Full Usage:
this.Keys
Returns: 'T seq
|
Returns a lazy sequence containing all keys
|
Full Usage:
this.LastKey
Returns: 'T
|
Returns the last key in the range
|
Full Usage:
this.Length
Returns: int64
|
Returns the length of the ranges
|
|
Searches for a key in the range (see `Ranges.lookup` for more info)
|
|
|
Full Usage:
this.OffsetOfKey
Parameters:
'T
Returns: int64
|
Returns the absolute offset of the key in the ranges
|
|
|
Full Usage:
this.Ranges
Returns: ('T * 'T) array
|
|
|
Restricts the ranges according to the specified range restriction
|
Deedle