Array Module
Functions and values
Function or value |
Description
|
Full Usage:
areEqual xs ys
Parameters:
'T[]
ys : 'T[]
Returns: bool
Modifiers: inline Type parameters: 'T |
Optimized arrays equality. ~100x faster than `array1 = array2` on strings. ~2x faster for floats ~0.8x slower for ints
|
Full Usage:
endsWith suffix whole
Parameters:
'a[]
whole : 'a[]
Returns: bool
|
Returns true if one array has trailing elements equal to another's.
|
Full Usage:
existsOne p l
Parameters:
'a -> bool
l : 'a[]
Returns: bool
|
|
Full Usage:
existsTrue arr
Parameters:
bool[]
Returns: bool
|
|
Full Usage:
findFirstIndexWhereTrue arr p
Parameters:
'a[]
p : 'a -> bool
Returns: int
|
|
Full Usage:
heads array
Parameters:
'T[]
Returns: 'T[][]
|
Returns all heads of a given array.
|
Full Usage:
isSubArray subArray wholeArray index
Parameters:
'T[]
wholeArray : 'T[]
index : int
Returns: bool
Modifiers: inline Type parameters: 'T |
Check if subArray is found in the wholeArray starting at the provided index
|
Full Usage:
lengthsEqAndForall2 p l1 l2
Parameters:
'a -> 'b -> bool
l1 : 'a[]
l2 : 'b[]
Returns: bool
|
|
|
|
Full Usage:
mapq f inp
Parameters:
'a -> 'a
inp : 'a[]
Returns: 'a[]
|
|
|
|
Full Usage:
prepend item array
Parameters:
'T
array : 'T[]
Returns: 'T[]
|
|
Full Usage:
replace index value array
Parameters:
int
value : 'a
array : 'a[]
Returns: 'a[]
|
Returns a new array with an element replaced with a given value.
|
Full Usage:
revInPlace array
Parameters:
'T[]
|
pass an array byref to reverse it in place
|
Full Usage:
startsWith prefix whole
Parameters:
'a[]
whole : 'a[]
Returns: bool
|
Returns true if one array has another as its subset from index 0.
|