Array
This module contains additional functions for working with arrays.
Deedle.Internals
is opened, it extends the standard Array
module.
Functions and values
Function or value | Description |
binarySearchNearestGreater (...)
Signature:key:'T -> comparer:IComparer<'T> -> array:'T [] -> int option
Type parameters: 'T |
Returns the index of 'key' or the index of immediately following value. If the specified key is greater than all keys in the array, None is returned. |
binarySearchNearestSmaller (...)
Signature:key:'T -> comparer:IComparer<'T> -> array:'T [] -> int option
Type parameters: 'T |
Returns the index of 'key' or the index of immediately preceeding value. If the specified key is smaller than all keys in the array, None is returned. |
choosei f array
Signature:f:(int -> '?8024 -> '?8025 option) -> array:'?8024 [] -> '?8025 []
Type parameters: '?8024, '?8025 |
Returns a new array containing only the elements for which the specified function returns |
dropRange first last data
Signature:first:int -> last:int -> data:'T [] -> 'T []
Type parameters: 'T |
Drop a specified range from a given array. The operation is inclusive on both sides. Given [ 1; 2; 3; 4 ] and indices (1, 2), the result is [ 1; 4 ] |