Header menu logo fantomas

ResizeArray Module

Generic operations on the type System.Collections.Generic.List, which is called ResizeArray in the F# libraries.

Functions and values

Function or value Description

append arg1 arg2

Full Usage: append arg1 arg2

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'T>

Build a new array that contains the elements of the first array followed by the elements of the second array.

arg0 : ResizeArray<'T>
arg1 : ResizeArray<'T>
Returns: ResizeArray<'T>

blit arg1 arg2 arg3 arg4 arg5

Full Usage: blit arg1 arg2 arg3 arg4 arg5

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : int
    arg2 : ResizeArray<'T>
    arg3 : int
    arg4 : int

Read a range of elements from the first array and write them into the second.

arg0 : ResizeArray<'T>
arg1 : int
arg2 : ResizeArray<'T>
arg3 : int
arg4 : int

choose arg1 arg2

Full Usage: choose arg1 arg2

Parameters:
    arg0 : 'T -> 'U option
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'U>

Apply the given function to each element of the array. Return the array comprised of the results "x" for each element where the function returns Some(x).

arg0 : 'T -> 'U option
arg1 : ResizeArray<'T>
Returns: ResizeArray<'U>

concat arg1

Full Usage: concat arg1

Parameters:
    arg0 : ResizeArray<'T> list

Returns: ResizeArray<'T>

Build a new array that contains the elements of each of the given list of arrays.

arg0 : ResizeArray<'T> list
Returns: ResizeArray<'T>

copy arg1

Full Usage: copy arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: ResizeArray<'T>

Build a new array that contains the elements of the given array.

arg0 : ResizeArray<'T>
Returns: ResizeArray<'T>

create arg1 arg2

Full Usage: create arg1 arg2

Parameters:
    arg0 : int
    arg1 : 'T

Returns: ResizeArray<'T>

Create an array whose elements are all initially the given value.

arg0 : int
arg1 : 'T
Returns: ResizeArray<'T>

exists arg1 arg2

Full Usage: exists arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: bool

Test if any element of the array satisfies the given predicate. If the input function is f and the elements are i0...iN then computes p i0 or ... or p iN.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: bool

exists2 arg1 arg2 arg3

Full Usage: exists2 arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> bool
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Returns: bool

Test elements of the two arrays pairwise to see if any pair of element satisfies the given predicate. Raise ArgumentException if the arrays have different lengths.

arg0 : 'T -> 'U -> bool
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>
Returns: bool

fill arg1 arg2 arg3 arg4

Full Usage: fill arg1 arg2 arg3 arg4

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : int
    arg2 : int
    arg3 : 'T

Fill a range of the collection with the given element.

arg0 : ResizeArray<'T>
arg1 : int
arg2 : int
arg3 : 'T

filter arg1 arg2

Full Usage: filter arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'T>

Return a new collection containing only the elements of the collection for which the given predicate returns True.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: ResizeArray<'T>

find arg1 arg2

Full Usage: find arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: 'T

Return the first element for which the given function returns True. Raise KeyNotFoundException if no such element exists.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: 'T

findIndex arg1 arg2

Full Usage: findIndex arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: int

Return the index of the first element in the array that satisfies the given predicate. Raise KeyNotFoundException if none of the elements satisfy the predicate.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: int

findIndexi arg1 arg2

Full Usage: findIndexi arg1 arg2

Parameters:
    arg0 : int -> 'T -> bool
    arg1 : ResizeArray<'T>

Returns: int

Return the index of the first element in the array that satisfies the given predicate. Raise KeyNotFoundException if none of the elements satisfy the predicate.

arg0 : int -> 'T -> bool
arg1 : ResizeArray<'T>
Returns: int

fold arg1 arg2 arg3

Full Usage: fold arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> 'T
    arg1 : 'T
    arg2 : ResizeArray<'U>

Returns: 'T

Apply a function to each element of the collection, threading an accumulator argument through the computation. If the input function is f and the elements are i0...iN then computes f (... (f s i0)...) iN

arg0 : 'T -> 'U -> 'T
arg1 : 'T
arg2 : ResizeArray<'U>
Returns: 'T

fold2 arg1 arg2 arg3 arg4

Full Usage: fold2 arg1 arg2 arg3 arg4

Parameters:
    arg0 : 'state -> 'b1 -> 'b2 -> 'state
    arg1 : 'state
    arg2 : ResizeArray<'b1>
    arg3 : ResizeArray<'b2>

Returns: 'state

Apply a function to pairs of elements drawn from the two collections, left-to-right, threading an accumulator argument through the computation. The two input arrays must have the same lengths, otherwise an ArgumentException is raised.

arg0 : 'state -> 'b1 -> 'b2 -> 'state
arg1 : 'state
arg2 : ResizeArray<'b1>
arg3 : ResizeArray<'b2>
Returns: 'state

foldBack arg1 arg2 arg3

Full Usage: foldBack arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> 'U
    arg1 : ResizeArray<'T>
    arg2 : 'U

Returns: 'U

Apply a function to each element of the array, threading an accumulator argument through the computation. If the input function is f and the elements are i0...iN then computes f i0 (...(f iN s)).

arg0 : 'T -> 'U -> 'U
arg1 : ResizeArray<'T>
arg2 : 'U
Returns: 'U

foldBack2 arg1 arg2 arg3 arg4

Full Usage: foldBack2 arg1 arg2 arg3 arg4

Parameters:
    arg0 : 'a1 -> 'a2 -> 'U -> 'U
    arg1 : ResizeArray<'a1>
    arg2 : ResizeArray<'a2>
    arg3 : 'U

Returns: 'U

Apply a function to pairs of elements drawn from the two collections, right-to-left, threading an accumulator argument through the computation. The two input arrays must have the same lengths, otherwise an ArgumentException is raised.

arg0 : 'a1 -> 'a2 -> 'U -> 'U
arg1 : ResizeArray<'a1>
arg2 : ResizeArray<'a2>
arg3 : 'U
Returns: 'U

forall arg1 arg2

Full Usage: forall arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: bool

Test if all elements of the array satisfy the given predicate. If the input function is f and the elements are i0...iN and "j0...jN" then computes p i0 && ... && p iN.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: bool

forall2 arg1 arg2 arg3

Full Usage: forall2 arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> bool
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Returns: bool

Test elements of the two arrays pairwise to see if all pairs of elements satisfy the given predicate. Raise ArgumentException if the arrays have different lengths.

arg0 : 'T -> 'U -> bool
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>
Returns: bool

get arg1 arg2

Full Usage: get arg1 arg2

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : int

Returns: 'T

Fetch an element from the collection. You can also use the syntax arr.[idx].

arg0 : ResizeArray<'T>
arg1 : int
Returns: 'T

init arg1 arg2

Full Usage: init arg1 arg2

Parameters:
    arg0 : int
    arg1 : int -> 'T

Returns: ResizeArray<'T>

Create an array by calling the given generator on each index.

arg0 : int
arg1 : int -> 'T
Returns: ResizeArray<'T>

isEmpty arg1

Full Usage: isEmpty arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: bool

Return True if the given array is empty, otherwise False.

arg0 : ResizeArray<'T>
Returns: bool

iter arg1 arg2

Full Usage: iter arg1 arg2

Parameters:
    arg0 : 'T -> unit
    arg1 : ResizeArray<'T>

Apply the given function to each element of the array.

arg0 : 'T -> unit
arg1 : ResizeArray<'T>

iter2 arg1 arg2 arg3

Full Usage: iter2 arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> unit
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Apply the given function to two arrays simultaneously. The two arrays must have the same lengths, otherwise an Invalid_argument exception is raised.

arg0 : 'T -> 'U -> unit
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>

iteri arg1 arg2

Full Usage: iteri arg1 arg2

Parameters:
    arg0 : int -> 'T -> unit
    arg1 : ResizeArray<'T>

Apply the given function to each element of the array. The integer passed to the function indicates the index of element.

arg0 : int -> 'T -> unit
arg1 : ResizeArray<'T>

iteri2 arg1 arg2 arg3

Full Usage: iteri2 arg1 arg2 arg3

Parameters:
    arg0 : int -> 'T -> 'U -> unit
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Apply the given function to pair of elements drawn from matching indices in two arrays, also passing the index of the elements. The two arrays must have the same lengths, otherwise an ArgumentException is raised.

arg0 : int -> 'T -> 'U -> unit
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>

length arg1

Full Usage: length arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: int

Return the length of the collection. You can also use property arr.Length.

arg0 : ResizeArray<'T>
Returns: int

map arg1 arg2

Full Usage: map arg1 arg2

Parameters:
    arg0 : 'T -> 'U
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'U>

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

arg0 : 'T -> 'U
arg1 : ResizeArray<'T>
Returns: ResizeArray<'U>

map2 arg1 arg2 arg3

Full Usage: map2 arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'U -> 'c
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Returns: ResizeArray<'c>

Build a new collection whose elements are the results of applying the given function to the corresponding elements of the two collections pairwise. The two input arrays must have the same lengths.

arg0 : 'T -> 'U -> 'c
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>
Returns: ResizeArray<'c>

mapi arg1 arg2

Full Usage: mapi arg1 arg2

Parameters:
    arg0 : int -> 'T -> 'U
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'U>

Build a new array whose elements are the results of applying the given function to each of the elements of the array. The integer index passed to the function indicates the index of element being transformed.

arg0 : int -> 'T -> 'U
arg1 : ResizeArray<'T>
Returns: ResizeArray<'U>

mapi2 arg1 arg2 arg3

Full Usage: mapi2 arg1 arg2 arg3

Parameters:
    arg0 : int -> 'T -> 'U -> 'c
    arg1 : ResizeArray<'T>
    arg2 : ResizeArray<'U>

Returns: ResizeArray<'c>

Build a new collection whose elements are the results of applying the given function to the corresponding elements of the two collections pairwise. The two input arrays must have the same lengths, otherwise an ArgumentException is raised.

arg0 : int -> 'T -> 'U -> 'c
arg1 : ResizeArray<'T>
arg2 : ResizeArray<'U>
Returns: ResizeArray<'c>

ofArray arg1

Full Usage: ofArray arg1

Parameters:
    arg0 : 'T[]

Returns: ResizeArray<'T>

Build a ResizeArray from the given elements.

arg0 : 'T[]
Returns: ResizeArray<'T>

ofList arg1

Full Usage: ofList arg1

Parameters:
    arg0 : 'T list

Returns: ResizeArray<'T>

Build an array from the given list.

arg0 : 'T list
Returns: ResizeArray<'T>

partition arg1 arg2

Full Usage: partition arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: ResizeArray<'T> * ResizeArray<'T>

Split the collection into two collections, containing the elements for which the given predicate returns True and False respectively.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: ResizeArray<'T> * ResizeArray<'T>

reduce arg1 arg2

Full Usage: reduce arg1 arg2

Parameters:
    arg0 : 'T -> 'T -> 'T
    arg1 : ResizeArray<'T>

Returns: 'T

Apply a function to each element of the array, threading an accumulator argument through the computation. If the input function is f and the elements are i0...iN then computes f (... (f i0 i1)...) iN. Raises ArgumentException if the array has size zero.

arg0 : 'T -> 'T -> 'T
arg1 : ResizeArray<'T>
Returns: 'T

reduceBack arg1 arg2

Full Usage: reduceBack arg1 arg2

Parameters:
    arg0 : 'T -> 'T -> 'T
    arg1 : ResizeArray<'T>

Returns: 'T

Apply a function to each element of the array, threading an accumulator argument through the computation. If the input function is f and the elements are i0...iN then computes f i0 (...(f iN-1 iN)). Raises ArgumentException if the array has size zero.

arg0 : 'T -> 'T -> 'T
arg1 : ResizeArray<'T>
Returns: 'T

rev arg1

Full Usage: rev arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: ResizeArray<'T>

Return a new array with the elements in reverse order.

arg0 : ResizeArray<'T>
Returns: ResizeArray<'T>

scan arg1 arg2 arg3

Full Usage: scan arg1 arg2 arg3

Parameters:
    arg0 : 'U -> 'T -> 'U
    arg1 : 'U
    arg2 : ResizeArray<'T>

Returns: ResizeArray<'U>

Like fold, but return the intermediary and final results.

arg0 : 'U -> 'T -> 'U
arg1 : 'U
arg2 : ResizeArray<'T>
Returns: ResizeArray<'U>

scanBack arg1 arg2 arg3

Full Usage: scanBack arg1 arg2 arg3

Parameters:
    arg0 : 'T -> 'c -> 'c
    arg1 : ResizeArray<'T>
    arg2 : 'c

Returns: ResizeArray<'c>

Like foldBack, but return both the intermediary and final results.

arg0 : 'T -> 'c -> 'c
arg1 : ResizeArray<'T>
arg2 : 'c
Returns: ResizeArray<'c>

set arg1 arg2 arg3

Full Usage: set arg1 arg2 arg3

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : int
    arg2 : 'T

Set the value of an element in the collection. You can also use the syntax arr.[idx] <- e.

arg0 : ResizeArray<'T>
arg1 : int
arg2 : 'T

singleton arg1

Full Usage: singleton arg1

Parameters:
    arg0 : 'T

Returns: ResizeArray<'T>

Return an array containing the given element.

arg0 : 'T
Returns: ResizeArray<'T>

sort arg1 arg2

Full Usage: sort arg1 arg2

Parameters:
    arg0 : 'T -> 'T -> int
    arg1 : ResizeArray<'T>

Sort the elements using the given comparison function.

arg0 : 'T -> 'T -> int
arg1 : ResizeArray<'T>

sortBy arg1 arg2

Full Usage: sortBy arg1 arg2

Parameters:
    arg0 : 'T -> 'Key
    arg1 : ResizeArray<'T>

Sort the elements using the key extractor and generic comparison on the keys.

arg0 : 'T -> 'Key
arg1 : ResizeArray<'T>

sub arg1 arg2 arg3

Full Usage: sub arg1 arg2 arg3

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : int
    arg2 : int

Returns: ResizeArray<'T>

Build a new array that contains the given subrange specified by starting index and length.

arg0 : ResizeArray<'T>
arg1 : int
arg2 : int
Returns: ResizeArray<'T>

toArray arg1

Full Usage: toArray arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: 'T[]

Return a fixed-length array containing the elements of the input ResizeArray.

arg0 : ResizeArray<'T>
Returns: 'T[]

toList arg1

Full Usage: toList arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: 'T list

Build a list from the given array.

arg0 : ResizeArray<'T>
Returns: 'T list

toSeq arg1

Full Usage: toSeq arg1

Parameters:
    arg0 : ResizeArray<'T>

Returns: 'T seq

Return a view of the array as an enumerable object.

arg0 : ResizeArray<'T>
Returns: 'T seq

tryFind arg1 arg2

Full Usage: tryFind arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: 'T option

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

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: 'T option

tryFindIndex arg1 arg2

Full Usage: tryFindIndex arg1 arg2

Parameters:
    arg0 : 'T -> bool
    arg1 : ResizeArray<'T>

Returns: int option

Return the index of the first element in the array that satisfies the given predicate.

arg0 : 'T -> bool
arg1 : ResizeArray<'T>
Returns: int option

tryFindIndexi arg1 arg2

Full Usage: tryFindIndexi arg1 arg2

Parameters:
    arg0 : int -> 'T -> bool
    arg1 : ResizeArray<'T>

Returns: int option

Return the index of the first element in the array that satisfies the given predicate.

arg0 : int -> 'T -> bool
arg1 : ResizeArray<'T>
Returns: int option

tryPick arg1 arg2

Full Usage: tryPick arg1 arg2

Parameters:
    arg0 : 'T -> 'U option
    arg1 : ResizeArray<'T>

Returns: 'U option

Apply the given function to successive elements, returning the first result where function returns Some(x) for some x.

arg0 : 'T -> 'U option
arg1 : ResizeArray<'T>
Returns: 'U option

unzip arg1

Full Usage: unzip arg1

Parameters:
    arg0 : ResizeArray<'T * 'U>

Returns: ResizeArray<'T> * ResizeArray<'U>

Split an array of pairs into two arrays.

arg0 : ResizeArray<'T * 'U>
Returns: ResizeArray<'T> * ResizeArray<'U>

zip arg1 arg2

Full Usage: zip arg1 arg2

Parameters:
    arg0 : ResizeArray<'T>
    arg1 : ResizeArray<'U>

Returns: ResizeArray<'T * 'U>

Combine the two arrays into an array of pairs. The two arrays must have equal lengths, otherwise an ArgumentException is raised..

arg0 : ResizeArray<'T>
arg1 : ResizeArray<'U>
Returns: ResizeArray<'T * 'U>

Type something to start searching.