fsprojects/FSharpx.Collections


BlockResizeArray

Namespace: FSharpx.Collections.Experimental

Functions and values

Function or valueDescription
add x bra
Signature: x:'?13900 -> bra:BlockResizeArray<'?13900> -> unit
Type parameters: '?13900

Adds element to the block resize array.

count bra
Signature: bra:BlockResizeArray<'?13887> -> int
Type parameters: '?13887

Returns the length of a block resize array.

filter f bra
Signature: f:('T -> bool) -> bra:BlockResizeArray<'T> -> BlockResizeArray<'T>
Type parameters: 'T

Returns a new collection containing only the elements of the collection for which the given predicate returns true.

find f bra
Signature: f:('T -> bool) -> bra:BlockResizeArray<'T> -> 'T
Type parameters: 'T

Returns the first element for which the given function returns true.

fold f s bra
Signature: f:('?13884 -> '?13885 -> '?13884) -> s:'?13884 -> bra:BlockResizeArray<'?13885> -> '?13884
Type parameters: '?13884, '?13885

Applies a function to each element of the collection, threading an accumulator argument through the computation.

iter f bra
Signature: f:('T -> unit) -> bra:BlockResizeArray<'T> -> unit
Type parameters: 'T

Applies the given function to each element of the block resize array.

map f bra
Signature: f:('T -> 'U) -> bra:BlockResizeArray<'T> -> BlockResizeArray<'U>
Type parameters: 'T, 'U

Builds a new block resize array whose elements are the results of applying the given function to each of the elements of the array.

toArray bra
Signature: bra:BlockResizeArray<'?13898> -> '?13898 []
Type parameters: '?13898

Creates an array from the given block resize array.

tryFind f bra
Signature: f:('T -> bool) -> bra:BlockResizeArray<'T> -> 'T option
Type parameters: 'T

Returns the first element for which the given function returns true. Return None if no such element exists.

Fork me on GitHub