ReadOnlyCollection
Provides helper functions for working with ReadOnlyCollection<T>
similar to those
in the Array
module. Most importantly, F# 3.0 does not know that array implements
IList<T>
.
Functions and values
Function or value | Description |
average list
Signature:list:ReadOnlyCollection<^T> -> ^?7999
Type parameters: ^T, ^?7999 |
Average elements of the ReadOnlyCollection |
averageOptional list
Signature:list:ReadOnlyCollection<OptionalValue<^T>> -> ^?8007
Type parameters: ^T, ^?8007 |
Average elements of the ReadOnlyCollection, skipping over missing values |
length list
Signature:list:ReadOnlyCollection<'T> -> int
Type parameters: 'T |
Count elements of the ReadOnlyCollection |
lengthOptional list
Signature:list:ReadOnlyCollection<OptionalValue<'T>> -> int
Type parameters: 'T |
Count elements of the ReadOnlyCollection that are not missing |
max list
Signature:list:ReadOnlyCollection<'T> -> 'T
Type parameters: 'T |
Return the greatest element of the ReadOnlyCollection |
maxOptional list
Signature:list:ReadOnlyCollection<OptionalValue<^T>> -> ^T opt
Type parameters: ^T |
Return the greatest element, skipping over missing values |
min list
Signature:list:ReadOnlyCollection<'T> -> 'T
Type parameters: 'T |
Return the smallest element of the ReadOnlyCollection |
minOptional list
Signature:list:ReadOnlyCollection<OptionalValue<^T>> -> ^T opt
Type parameters: ^T |
Return the smallest element, skipping over missing values |
ofArray array
Signature:array:'T [] -> ReadOnlyCollection<'T>
Type parameters: 'T |
Converts an array to ReadOnlyCollection. |
ofSeq seq
Signature:seq:seq<'T> -> ReadOnlyCollection<'T>
Type parameters: 'T |
Converts a lazy sequence to fully evaluated ReadOnlyCollection |
reduce op list
Signature:op:('T -> 'T -> 'T) -> list:ReadOnlyCollection<'T> -> 'T
Type parameters: 'T |
Reduce elements of the ReadOnlyCollection |
reduceOptional op list
Signature:op:('T -> 'T -> 'T) -> list:ReadOnlyCollection<OptionalValue<'T>> -> 'T opt
Type parameters: 'T |
Reduce elements of the ReadOnlyCollection, skipping over missing values |
sum list
Signature:list:ReadOnlyCollection<^T> -> ^?7988
Type parameters: ^T, ^?7988 |
Sum elements of the ReadOnlyCollection |
sumOptional list
Signature:list:ReadOnlyCollection<OptionalValue<^T>> -> ^?8002
Type parameters: ^T, ^?8002 |
Sum elements of the ReadOnlyCollection, skipping over missing values |