FSharpAux


ArrayDivvy

Namespace: FSharpAux

Functions and values

Function or valueDescription
count(divvy)
Signature: divvy:ArrayDivvy<'T> -> int
Type parameters: 'T

Returns the length of a mutable array segment.

create count x
Signature: count:int -> x:'T -> ArrayDivvy<'T>
Type parameters: 'T
filter f divvy
Signature: f:('T -> bool) -> divvy:ArrayDivvy<'T> -> ArrayDivvy<'T>
Type parameters: 'T

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

fold f s divvy
Signature: f:('?8957 -> 'T -> '?8957) -> s:'?8957 -> divvy:ArrayDivvy<'T> -> '?8957
Type parameters: '?8957, 'T

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

iter f divvy
Signature: f:('T -> unit) -> divvy:ArrayDivvy<'T> -> unit
Type parameters: 'T

Applies the given function to each element of the divvy array.

map f divvy
Signature: f:('T -> 'U) -> divvy:ArrayDivvy<'T> -> ArrayDivvy<'U>
Type parameters: 'T, 'U

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

zeroCreate(count)
Signature: count:int -> ArrayDivvy<'T>
Type parameters: 'T
Fork me on GitHub