Resize array fith fixed size block memory allocation. Provide more optimal space usage for huge arrays than standard ResizeArray. Basic version created by Avdyukhin Dmitry (dimonbv@gmail.com) As evidenced by the tests that cannot run in mono, and pending destabilizing tests, beware that this data structure can be destabilizing to your assembly.
Constructor | Description |
|
|
Instance member | Description |
Full Usage:
this.Add(x)
Parameters:
'T
|
|
Full Usage:
this.DeleteBlock(i)
Parameters:
int
|
|
|
Returns a new collection containing only the elements of the collection for which the given predicate returns true.
|
Full Usage:
this.Find(f)
Parameters:
'T -> bool
Returns: 'T
|
Returns the first element for which the given function returns true. Raise KeyNotFoundException if no such element exists.
|
Full Usage:
this.Fold(folder) (state)
Parameters:
'State -> 'T -> 'State
state : 'State
Returns: 'State
|
Applies a function to each element of the collection, threading an accumulator argument through the computation.
|
Full Usage:
this.[i]
Returns: int
|
|
Full Usage:
this.Iter(f)
Parameters:
'T -> unit
|
|
Full Usage:
this.Length
Returns: int
|
|
|
Builds a new block resize array whose elements are the results of applying the given function to each of the elements of the array.
|
Full Usage:
this.Shift
Returns: int
|
|
Full Usage:
this.ToArray()
Returns: 'T[]
|
|
Full Usage:
this.TryFind(f)
Parameters:
'T -> bool
Returns: 'T option
|
Returns the first element for which the given function returns true. Return None if no such element exists.
|
Static member | Description |
Full Usage:
BlockResizeArray.Init(initCount) (f)
Parameters:
int
f : int -> 'T
Returns: BlockResizeArray<'T>
|
|
Full Usage:
BlockResizeArray.ZeroCreate(initCount)
Parameters:
int
Returns: BlockResizeArray<'a>
|
Creates a block resize array where the entries are initially the default value Unchecked.defaultof<'T>.
|