From cf0823e3f19d41172d6e0556564ac5a5e88a1570 Mon Sep 17 00:00:00 2001
From: Martin521 <29605222+Martin521@users.noreply.github.com>
Date: Sun, 21 Jan 2024 21:43:38 +0000
Subject: [PATCH 1/3] changed array types to postfix form in all signatures
---
src/FSharp.Core/Linq.fsi | 4 +-
src/FSharp.Core/array.fsi | 332 ++++++++++-----------
src/FSharp.Core/async.fsi | 16 +-
src/FSharp.Core/collections.fsi | 4 +-
src/FSharp.Core/event.fsi | 2 +-
src/FSharp.Core/fslib-extra-pervasives.fsi | 22 +-
src/FSharp.Core/list.fsi | 4 +-
src/FSharp.Core/local.fsi | 38 +--
src/FSharp.Core/map.fsi | 4 +-
src/FSharp.Core/option.fsi | 4 +-
src/FSharp.Core/prim-types-prelude.fsi | 4 +-
src/FSharp.Core/prim-types.fsi | 50 ++--
src/FSharp.Core/printf.fsi | 8 +-
src/FSharp.Core/quotations.fsi | 8 +-
src/FSharp.Core/reflect.fsi | 72 ++---
src/FSharp.Core/result.fsi | 2 +-
src/FSharp.Core/seq.fsi | 12 +-
src/FSharp.Core/seqcore.fsi | 4 +-
src/FSharp.Core/set.fsi | 6 +-
19 files changed, 298 insertions(+), 298 deletions(-)
diff --git a/src/FSharp.Core/Linq.fsi b/src/FSharp.Core/Linq.fsi
index 13f3fa4187e..5064de12f55 100644
--- a/src/FSharp.Core/Linq.fsi
+++ b/src/FSharp.Core/Linq.fsi
@@ -78,14 +78,14 @@ module LeafExpressionConverter =
///
///
///
- val SubstHelper: Expr * Var[] * obj[] -> Expr<'T>
+ val SubstHelper: Expr * Var array * obj array -> Expr<'T>
///
/// A runtime helper used to evaluate nested quotation literals.
///
///
///
- val SubstHelperRaw: Expr * Var[] * obj[] -> Expr
+ val SubstHelperRaw: Expr * Var array * obj array -> Expr
val internal (|SpecificCallToMethod|_|):
System.RuntimeMethodHandle -> (Expr -> (Expr option * Reflection.MethodInfo * Expr list) option)
diff --git a/src/FSharp.Core/array.fsi b/src/FSharp.Core/array.fsi
index 7ac42219058..9a6a9c3d865 100644
--- a/src/FSharp.Core/array.fsi
+++ b/src/FSharp.Core/array.fsi
@@ -35,7 +35,7 @@ module Array =
///
///
[]
- val allPairs: array1: 'T1[] -> array2: 'T2[] -> ('T1 * 'T2)[]
+ val allPairs: array1: 'T1 array -> array2: 'T2 array -> ('T1 * 'T2) array
/// Builds a new array that contains the elements of the first array followed by the elements of the second array.
///
@@ -53,7 +53,7 @@ module Array =
/// Evaluates to [| 1; 2; 3; 4 |].
///
[]
- val append: array1: 'T[] -> array2: 'T[] -> 'T[]
+ val append: array1: 'T array -> array2: 'T array -> 'T array
/// Returns the average of the elements in the array.
///
@@ -79,7 +79,7 @@ module Array =
///
[]
val inline average:
- array: ^T[] -> ^T
+ array: ^T array -> ^T
when ^T: (static member (+): ^T * ^T -> ^T)
and ^T: (static member DivideByInt: ^T * int -> ^T)
and ^T: (static member Zero: ^T)
@@ -110,7 +110,7 @@ module Array =
///
/// type Foo = { Bar: float }
///
- /// let input : Foo[] = [| |]
+ /// let input : Foo array = [| |]
///
/// input |> Array.averageBy (fun foo -> foo.Bar)
///
@@ -118,7 +118,7 @@ module Array =
///
[]
val inline averageBy:
- projection: ('T -> ^U) -> array: 'T[] -> ^U
+ projection: ('T -> ^U) -> array: 'T array -> ^U
when ^U: (static member (+): ^U * ^U -> ^U)
and ^U: (static member DivideByInt: ^U * int -> ^U)
and ^U: (static member Zero: ^U)
@@ -154,7 +154,7 @@ module Array =
/// After evaluation target contains [| 0; 1; 2; 13; 14; 5 |].
///
[]
- val inline blit: source: 'T[] -> sourceIndex: int -> target: 'T[] -> targetIndex: int -> count: int -> unit
+ val inline blit: source: 'T array -> sourceIndex: int -> target: 'T array -> targetIndex: int -> count: int -> unit
/// For each element of the array, applies the given function. Concatenates all the results and return the combined array.
///
@@ -167,7 +167,7 @@ module Array =
///
///
///
- /// type Foo = { Bar: int[] }
+ /// type Foo = { Bar: int array }
///
/// let input = [| {Bar = [| 1; 2 |]}; {Bar = [| 3; 4 |]} |]
///
@@ -185,7 +185,7 @@ module Array =
/// Evaluates to [| 1; 2; 3; 4 |]
///
[]
- val collect: mapping: ('T -> 'U[]) -> array: 'T[] -> 'U[]
+ val collect: mapping: ('T -> 'U array) -> array: 'T array -> 'U array
/// Compares two arrays using the given comparison function, element by element.
///
@@ -268,7 +268,7 @@ module Array =
/// Evaluates to -1
///
[]
- val inline compareWith: comparer: ('T -> 'T -> int) -> array1: 'T[] -> array2: 'T[] -> int
+ val inline compareWith: comparer: ('T -> 'T -> int) -> array1: 'T array -> array2: 'T array -> int
/// Builds a new array that contains the elements of each of the given sequence of arrays.
///
@@ -287,7 +287,7 @@ module Array =
/// Evaluates to [| 1; 2; 3; 4; 5 |]
///
[]
- val concat: arrays: seq<'T[]> -> 'T[]
+ val concat: arrays: seq<'T array> -> 'T array
/// Tests if the array contains the specified element.
///
@@ -305,7 +305,7 @@ module Array =
///
///
[]
- val inline contains: value: 'T -> array: 'T[] -> bool when 'T: equality
+ val inline contains: value: 'T -> array: 'T array -> bool when 'T: equality
/// Builds a new array that contains the elements of the given array.
///
@@ -324,7 +324,7 @@ module Array =
/// Evaluates to a new array containing[| 12; 13; 14 |].
///
[]
- val copy: array: 'T[] -> 'T[]
+ val copy: array: 'T array -> 'T array
/// Applies a key-generating function to each element of an array and returns an array yielding unique
/// keys and their number of occurrences in the original array.
@@ -348,7 +348,7 @@ module Array =
/// Evaluates to [| ("a", 2); ("b", 1) |]
///
[]
- val countBy: projection: ('T -> 'Key) -> array: 'T[] -> ('Key * int)[] when 'Key: equality
+ val countBy: projection: ('T -> 'Key) -> array: 'T array -> ('Key * int) array when 'Key: equality
/// Creates an array whose elements are all initially the given value.
///
@@ -378,7 +378,7 @@ module Array =
/// Note each entry in the array is the same mutable cell object.
///
[]
- val create: count: int -> value: 'T -> 'T[]
+ val create: count: int -> value: 'T -> 'T array
/// Returns the first element of the array, or
/// None if the array is empty.
@@ -400,14 +400,14 @@ module Array =
///
///
///
- /// let inputs : int[] = [| |]
+ /// let inputs : int array = [| |]
///
/// inputs |> Array.tryHead
///
/// Evaluates to None
///
[]
- val tryHead: array: 'T[] -> 'T option
+ val tryHead: array: 'T array -> 'T option
/// Applies the given function to successive elements, returning the first
/// result where the function returns Some(x) for some x. If the function
@@ -439,7 +439,7 @@ module Array =
///
///
[]
- val tryPick: chooser: ('T -> 'U option) -> array: 'T[] -> 'U option
+ val tryPick: chooser: ('T -> 'U option) -> array: 'T array -> 'U option
/// Fills a range of elements of the array with the given value.
///
@@ -460,7 +460,7 @@ module Array =
/// After evaluation target contains [| 0; 1; 2; 100; 100; 5 |].
///
[]
- val fill: target: 'T[] -> targetIndex: int -> count: int -> value: 'T -> unit
+ val fill: target: 'T array -> targetIndex: int -> count: int -> value: 'T -> unit
/// Applies the given function to successive elements, returning the first
/// result where the function returns Some(x) for some x. If the function
@@ -494,7 +494,7 @@ module Array =
///
///
[]
- val pick: chooser: ('T -> 'U option) -> array: 'T[] -> 'U
+ val pick: chooser: ('T -> 'U option) -> array: 'T array -> 'U
/// Applies the given function to each element of the array. Returns
/// the array comprised of the results x for each element where
@@ -525,7 +525,7 @@ module Array =
/// Evaluates to [| 2 |]
///
[]
- val choose: chooser: ('T -> 'U option) -> array: 'T[] -> 'U[]
+ val choose: chooser: ('T -> 'U option) -> array: 'T array -> 'U array
/// Divides the input array into chunks of size at most chunkSize.
///
@@ -555,7 +555,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val chunkBySize: chunkSize: int -> array: 'T[] -> 'T[][]
+ val chunkBySize: chunkSize: int -> array: 'T array -> 'T array array
/// Returns an array that contains no duplicate entries according to generic hash and
/// equality comparisons on the entries.
@@ -576,7 +576,7 @@ module Array =
/// Evaluates to [| 1; 2; 3 |]
///
[]
- val distinct: array: 'T[] -> 'T[] when 'T: equality
+ val distinct: array: 'T array -> 'T array when 'T: equality
/// Returns an array that contains no duplicate entries according to the
/// generic hash and equality comparisons on the keys returned by the given key-generating function.
@@ -598,7 +598,7 @@ module Array =
/// Evaluates to [| { Bar = 1 }; { Bar = 2 }; { Bar = 3 } |]
///
[]
- val distinctBy: projection: ('T -> 'Key) -> array: 'T[] -> 'T[] when 'Key: equality
+ val distinctBy: projection: ('T -> 'Key) -> array: 'T array -> 'T array when 'Key: equality
/// Splits the input array into at most count chunks.
///
@@ -628,7 +628,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val splitInto: count: int -> array: 'T[] -> 'T[][]
+ val splitInto: count: int -> array: 'T array -> 'T array array
/// Returns an empty array of the given type.
/// The empty array.
@@ -640,7 +640,7 @@ module Array =
///
[]
[]
- val empty<'T> : 'T[]
+ val empty<'T> : 'T array
/// Returns the only element of the array.
///
@@ -671,14 +671,14 @@ module Array =
///
///
///
- /// let inputs: int[] = [| |]
+ /// let inputs: int array = [| |]
///
/// inputs |> Array.exactlyOne
///
/// Throws ArgumentException
///
[]
- val exactlyOne: array: 'T[] -> 'T
+ val exactlyOne: array: 'T array -> 'T
/// Returns the only element of the array or None if array is empty or contains more than one element.
///
@@ -708,14 +708,14 @@ module Array =
///
///
///
- /// let inputs: int[] = [| |]
+ /// let inputs: int array = [| |]
///
/// inputs |> Array.tryExactlyOne
///
/// Evaluates to None
///
[]
- val tryExactlyOne: array: 'T[] -> 'T option
+ val tryExactlyOne: array: 'T array -> 'T option
/// Returns a new list with the distinct elements of the input array which do not appear in the itemsToExclude sequence,
/// using generic hash and equality comparisons to compare values.
@@ -738,7 +738,7 @@ module Array =
/// Evaluates to [| 2; 4 |]
///
[]
- val except: itemsToExclude: seq<'T> -> array: 'T[] -> 'T[] when 'T: equality
+ val except: itemsToExclude: seq<'T> -> array: 'T array -> 'T array when 'T: equality
/// Tests if any element of the array satisfies the given predicate.
///
@@ -771,7 +771,7 @@ module Array =
/// Evaluates to false
///
[]
- val inline exists: predicate: ('T -> bool) -> array: 'T[] -> bool
+ val inline exists: predicate: ('T -> bool) -> array: 'T array -> bool
/// Tests if any pair of corresponding elements of the arrays satisfies the given predicate.
///
@@ -810,7 +810,7 @@ module Array =
/// Evaluates to true
///
[]
- val exists2: predicate: ('T1 -> 'T2 -> bool) -> array1: 'T1[] -> array2: 'T2[] -> bool
+ val exists2: predicate: ('T1 -> 'T2 -> bool) -> array1: 'T1 array -> array2: 'T2 array -> bool
/// Returns a new collection containing only the elements of the collection
/// for which the given predicate returns "true".
@@ -831,7 +831,7 @@ module Array =
/// Evaluates to [| 2; 4 |]
///
[]
- val filter: predicate: ('T -> bool) -> array: 'T[] -> 'T[]
+ val filter: predicate: ('T -> bool) -> array: 'T array -> 'T array
/// Returns the first element for which the given function returns 'true'.
/// Raise if no such element exists.
@@ -863,7 +863,7 @@ module Array =
/// Throws KeyNotFoundException
///
[]
- val find: predicate: ('T -> bool) -> array: 'T[] -> 'T
+ val find: predicate: ('T -> bool) -> array: 'T array -> 'T
/// Returns the last element for which the given function returns 'true'.
/// Raise if no such element exists.
@@ -895,7 +895,7 @@ module Array =
/// Throws KeyNotFoundException
///
[]
- val findBack: predicate: ('T -> bool) -> array: 'T[] -> 'T
+ val findBack: predicate: ('T -> bool) -> array: 'T array -> 'T
/// Returns the index of the first element in the array
/// that satisfies the given predicate. Raise if
@@ -927,7 +927,7 @@ module Array =
/// Throws KeyNotFoundException
///
[]
- val findIndex: predicate: ('T -> bool) -> array: 'T[] -> int
+ val findIndex: predicate: ('T -> bool) -> array: 'T array -> int
/// Returns the index of the last element in the array
/// that satisfies the given predicate. Raise if
@@ -960,7 +960,7 @@ module Array =
/// Throws KeyNotFoundException
///
[]
- val findIndexBack: predicate: ('T -> bool) -> array: 'T[] -> int
+ val findIndexBack: predicate: ('T -> bool) -> array: 'T array -> int
/// Tests if all elements of the array satisfy the given predicate.
///
@@ -985,7 +985,7 @@ module Array =
///
///
[]
- val forall: predicate: ('T -> bool) -> array: 'T[] -> bool
+ val forall: predicate: ('T -> bool) -> array: 'T array -> bool
/// Tests if all corresponding elements of the array satisfy the given predicate pairwise.
///
@@ -1034,7 +1034,7 @@ module Array =
/// Throws ArgumentException.
///
[]
- val forall2: predicate: ('T1 -> 'T2 -> bool) -> array1: 'T1[] -> array2: 'T2[] -> bool
+ val forall2: predicate: ('T1 -> 'T2 -> bool) -> array1: 'T1 array -> array2: 'T2 array -> bool
/// Applies 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
@@ -1064,7 +1064,7 @@ module Array =
/// Evaluates to 2
///
[]
- val fold<'T, 'State> : folder: ('State -> 'T -> 'State) -> state: 'State -> array: 'T[] -> 'State
+ val fold<'T, 'State> : folder: ('State -> 'T -> 'State) -> state: 'State -> array: 'T array -> 'State
/// Applies a function to each element of the array, starting from the end, threading an accumulator argument
/// through the computation. If the input function is f and the elements are i0...iN then computes
@@ -1107,7 +1107,7 @@ module Array =
///
///
[]
- val foldBack<'T, 'State> : folder: ('T -> 'State -> 'State) -> array: 'T[] -> state: 'State -> 'State
+ val foldBack<'T, 'State> : folder: ('T -> 'State -> 'State) -> array: 'T array -> state: 'State -> 'State
/// Applies a function to pairs of elements drawn from the two collections,
/// left-to-right, threading an accumulator argument
@@ -1142,7 +1142,7 @@ module Array =
///
[]
val fold2<'T1, 'T2, 'State> :
- folder: ('State -> 'T1 -> 'T2 -> 'State) -> state: 'State -> array1: 'T1[] -> array2: 'T2[] -> 'State
+ folder: ('State -> 'T1 -> 'T2 -> 'State) -> state: 'State -> array1: 'T1 array -> array2: 'T2 array -> 'State
/// 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
@@ -1191,7 +1191,7 @@ module Array =
///
[]
val foldBack2<'T1, 'T2, 'State> :
- folder: ('T1 -> 'T2 -> 'State -> 'State) -> array1: 'T1[] -> array2: 'T2[] -> state: 'State -> 'State
+ folder: ('T1 -> 'T2 -> 'State -> 'State) -> array1: 'T1 array -> array2: 'T2 array -> state: 'State -> 'State
/// Gets an element from an array.
///
@@ -1223,7 +1223,7 @@ module Array =
/// Throws IndexOutOfRangeException
///
[]
- val get: array: 'T[] -> index: int -> 'T
+ val get: array: 'T array -> index: int -> 'T
/// Returns the first element of the array.
///
@@ -1250,7 +1250,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val head: array: 'T[] -> 'T
+ val head: array: 'T array -> 'T
/// Applies a key-generating function to each element of an array and yields an array of
/// unique keys. Each unique key contains an array of all elements that match
@@ -1272,7 +1272,7 @@ module Array =
/// Evaluates to [| (1, [| 1; 3; 5 |]); (0, [| 2; 4 |]) |]
///
[]
- val groupBy: projection: ('T -> 'Key) -> array: 'T[] -> ('Key * 'T[])[] when 'Key: equality
+ val groupBy: projection: ('T -> 'Key) -> array: 'T array -> ('Key * 'T array) array when 'Key: equality
/// Builds a new array whose elements are the corresponding elements of the input array
/// paired with the integer index (from 0) of each element.
@@ -1292,7 +1292,7 @@ module Array =
/// Evaluates to [| (0, "a"); (1, "b"); (2, "c") |]
///
[]
- val indexed: array: 'T[] -> (int * 'T)[]
+ val indexed: array: 'T array -> (int * 'T) array
/// Creates an array given the dimension and a generator function to compute the elements.
///
@@ -1317,7 +1317,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val inline init: count: int -> initializer: (int -> 'T) -> 'T[]
+ val inline init: count: int -> initializer: (int -> 'T) -> 'T array
/// Creates an array where the entries are initially the default value Unchecked.defaultof<'T>.
///
@@ -1329,12 +1329,12 @@ module Array =
///
///
///
- /// let arr : int[] = Array.zeroCreate 4
+ /// let arr : int array = Array.zeroCreate 4
///
/// Evaluates to [| 0; 0; 0; 0 |]
///
[]
- val zeroCreate: count: int -> 'T[]
+ val zeroCreate: count: int -> 'T array
/// Returns true if the given array is empty, otherwise false.
///
@@ -1358,7 +1358,7 @@ module Array =
/// Evaluates to false
///
[]
- val isEmpty: array: 'T[] -> bool
+ val isEmpty: array: 'T array -> bool
/// Applies the given function to each element of the array.
///
@@ -1382,7 +1382,7 @@ module Array =
/// in the console.
///
[]
- val inline iter: action: ('T -> unit) -> array: 'T[] -> unit
+ val inline iter: action: ('T -> unit) -> array: 'T array -> unit
/// Applies the given function to pair of elements drawn from matching indices in two arrays. The
/// two arrays must have the same lengths, otherwise an ArgumentException is
@@ -1411,7 +1411,7 @@ module Array =
/// in the console.
///
[]
- val iter2: action: ('T1 -> 'T2 -> unit) -> array1: 'T1[] -> array2: 'T2[] -> unit
+ val iter2: action: ('T1 -> 'T2 -> unit) -> array1: 'T1 array -> array2: 'T2 array -> unit
/// Applies the given function to each element of the array. The integer passed to the
/// function indicates the index of element.
@@ -1436,7 +1436,7 @@ module Array =
/// in the console.
///
[]
- val iteri: action: (int -> 'T -> unit) -> array: 'T[] -> unit
+ val iteri: action: (int -> 'T -> unit) -> array: 'T array -> unit
/// Applies 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,
@@ -1465,7 +1465,7 @@ module Array =
/// in the console.
///
[]
- val iteri2: action: (int -> 'T1 -> 'T2 -> unit) -> array1: 'T1[] -> array2: 'T2[] -> unit
+ val iteri2: action: (int -> 'T1 -> 'T2 -> unit) -> array1: 'T1 array -> array2: 'T2 array -> unit
/// Returns the last element of the array.
///
@@ -1490,7 +1490,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val inline last: array: 'T[] -> 'T
+ val inline last: array: 'T array -> 'T
/// Gets an element from an array.
///
@@ -1522,7 +1522,7 @@ module Array =
/// Throws ArgumentException
///
[]
- val item: index: int -> array: 'T[] -> 'T
+ val item: index: int -> array: 'T array -> 'T
/// Returns the length of an array. You can also use property arr.Length.
///
@@ -1543,7 +1543,7 @@ module Array =
/// Evaluates to 3
///
[]
- val length: array: 'T[] -> int
+ val length: array: 'T array -> int
/// Returns the last element of the array.
/// Return None if no such element exists.
@@ -1568,7 +1568,7 @@ module Array =
/// Evaluates to None
///
[]
- val tryLast: array: 'T[] -> 'T option
+ val tryLast: array: 'T array -> 'T option
/// Builds a new array whose elements are the results of applying the given function
/// to each of the elements of the array.
@@ -1589,7 +1589,7 @@ module Array =
/// Evaluates to [| 1; 3; 2 |]
///
[]
- val inline map: mapping: ('T -> 'U) -> array: 'T[] -> 'U[]
+ val inline map: mapping: ('T -> 'U) -> array: 'T array -> 'U array
/// Builds 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
@@ -1615,7 +1615,7 @@ module Array =
/// Evaluates to [| 'a'; 'd'; 'o' |]
///
[]
- val map2: mapping: ('T1 -> 'T2 -> 'U) -> array1: 'T1[] -> array2: 'T2[] -> 'U[]
+ val map2: mapping: ('T1 -> 'T2 -> 'U) -> array1: 'T1 array -> array2: 'T2 array -> 'U array
/// Combines map and fold. Builds a new array whose elements are the results of applying the given function
/// to each of the elements of the input array. The function is also used to accumulate a final value.
@@ -1646,7 +1646,7 @@ module Array =
///
[]
val mapFold<'T, 'State, 'Result> :
- mapping: ('State -> 'T -> 'Result * 'State) -> state: 'State -> array: 'T[] -> 'Result[] * 'State
+ mapping: ('State -> 'T -> 'Result * 'State) -> state: 'State -> array: 'T array -> 'Result array * 'State
/// Combines map and foldBack. Builds a new array whose elements are the results of applying the given function
/// to each of the elements of the input array. The function is also used to accumulate a final value.
@@ -1677,7 +1677,7 @@ module Array =
///
[]
val mapFoldBack<'T, 'State, 'Result> :
- mapping: ('T -> 'State -> 'Result * 'State) -> array: 'T[] -> state: 'State -> 'Result[] * 'State
+ mapping: ('T -> 'State -> 'Result * 'State) -> array: 'T array -> state: 'State -> 'Result array * 'State
/// Builds a new collection whose elements are the results of applying the given function
/// to the corresponding triples from the three collections. The three input
@@ -1706,7 +1706,7 @@ module Array =
///
///
[]
- val map3: mapping: ('T1 -> 'T2 -> 'T3 -> 'U) -> array1: 'T1[] -> array2: 'T2[] -> array3: 'T3[] -> 'U[]
+ val map3: mapping: ('T1 -> 'T2 -> 'T3 -> 'U) -> array1: 'T1 array -> array2: 'T2 array -> array3: 'T3 array -> 'U array
/// Builds a new collection whose elements are the results of applying the given function
/// to the corresponding elements of the two collections pairwise, also passing the index of
@@ -1732,7 +1732,7 @@ module Array =
/// Evaluates to [|(0, 'a'); (1, 'd'); (2, 'o')|]
///
[]
- val mapi2: mapping: (int -> 'T1 -> 'T2 -> 'U) -> array1: 'T1[] -> array2: 'T2[] -> 'U[]
+ val mapi2: mapping: (int -> 'T1 -> 'T2 -> 'U) -> array1: 'T1 array -> array2: 'T2 array -> 'U array
/// Builds 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
@@ -1754,7 +1754,7 @@ module Array =
/// Evaluates to [| 10; 11; 12 |]
///
[]
- val mapi: mapping: (int -> 'T -> 'U) -> array: 'T[] -> 'U[]
+ val mapi: mapping: (int -> 'T -> 'U) -> array: 'T array -> 'U array
/// Returns the greatest of all elements of the array, compared via Operators.max on the function result.
///
@@ -1778,14 +1778,14 @@ module Array =
///
///
///
- /// let inputs: int[]= [| |]
+ /// let inputs: int array= [| |]
///
/// inputs |> Array.max
///
/// Throws System.ArgumentException.
///
[]
- val inline max: array: 'T[] -> 'T when 'T: comparison
+ val inline max: array: 'T array -> 'T when 'T: comparison
/// Returns the greatest of all elements of the array, compared via Operators.max on the function result.
///
@@ -1810,14 +1810,14 @@ module Array =
///
///
///
- /// let inputs: string[]= [| |]
+ /// let inputs: string array= [| |]
///
/// inputs |> Array.maxBy (fun s -> s.Length)
///
/// Throws System.ArgumentException.
///
[]
- val inline maxBy: projection: ('T -> 'U) -> array: 'T[] -> 'T when 'U: comparison
+ val inline maxBy: projection: ('T -> 'U) -> array: 'T array -> 'T when 'U: comparison
/// Returns the lowest of all elements of the array, compared via Operators.min.
///
@@ -1841,14 +1841,14 @@ module Array =
///
///
///
- /// let inputs: int[]= [| |]
+ /// let inputs: int array= [| |]
///
/// inputs |> Array.min
///
/// Throws System.ArgumentException.
///
[]
- val inline min: array: 'T[] -> 'T when 'T: comparison
+ val inline min: array: 'T array -> 'T when 'T: comparison
/// Returns the lowest of all elements of the array, compared via Operators.min on the function result.
///
@@ -1873,14 +1873,14 @@ module Array =
///
///
///
- /// let inputs: string[]= [| |]
+ /// let inputs: string array= [| |]
///
/// inputs |> Array.minBy (fun s -> s.Length)
///
/// Throws System.ArgumentException.
///
[]
- val inline minBy: projection: ('T -> 'U) -> array: 'T[] -> 'T when 'U: comparison
+ val inline minBy: projection: ('T -> 'U) -> array: 'T array -> 'T when 'U: comparison
/// Builds an array from the given list.
///
@@ -1897,7 +1897,7 @@ module Array =
/// Evaluates to [| 1; 2; 5 |].
///
[]
- val ofList: list: 'T list -> 'T[]
+ val ofList: list: 'T list -> 'T array
/// Builds a new array from the given enumerable object.
///
@@ -1916,7 +1916,7 @@ module Array =
/// Evaluates to [| 1; 2; 5 |].
///
[]
- val ofSeq: source: seq<'T> -> 'T[]
+ val ofSeq: source: seq<'T> -> 'T array
/// Returns an array of each element in the input array and its predecessor, with the
/// exception of the first element which is only returned as the predecessor of the second element.
@@ -1936,7 +1936,7 @@ module Array =
/// Evaluates to [|(1, 2); (2, 3); (3, 4)|].
///
[]
- val pairwise: array: 'T[] -> ('T * 'T)[]
+ val pairwise: array: 'T array -> ('T * 'T) array
/// Splits the collection into two collections, containing the
/// elements for which the given predicate returns "true" and "false"
@@ -1959,7 +1959,7 @@ module Array =
/// Evaluates to ([|2; 4|], [|1; 3|]).
///
[]
- val partition: predicate: ('T -> bool) -> array: 'T[] -> 'T[] * 'T[]
+ val partition: predicate: ('T -> bool) -> array: 'T array -> 'T array * 'T array
/// Returns an array with all elements permuted according to the
/// specified permutation.
@@ -1981,7 +1981,7 @@ module Array =
/// Evaluates to [|4; 1; 2; 3|].
///
[]
- val permute: indexMap: (int -> int) -> array: 'T[] -> 'T[]
+ val permute: indexMap: (int -> int) -> array: 'T array -> 'T array
/// Applies 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
@@ -2005,7 +2005,7 @@ module Array =
/// Evaluates to 1342, by computing ((1 * 10 + 3) * 10 + 4) * 10 + 2
///
[]
- val reduce: reduction: ('T -> 'T -> 'T) -> array: 'T[] -> 'T
+ val reduce: reduction: ('T -> 'T -> 'T) -> array: 'T array -> 'T
/// Applies a function to each element of the array, starting from the end, threading an accumulator argument
/// through the computation. If the input function is f and the elements are i0...iN
@@ -2029,7 +2029,7 @@ module Array =
/// Evaluates to 2431, by computing 1 + (3 + (4 + 2 * 10) * 10) * 10
///
[]
- val reduceBack: reduction: ('T -> 'T -> 'T) -> array: 'T[] -> 'T
+ val reduceBack: reduction: ('T -> 'T -> 'T) -> array: 'T array -> 'T
/// Creates an array by replicating the given initial value.
///
@@ -2047,7 +2047,7 @@ module Array =
/// Evaluates to [| "a"; "a"; "a" |].
///
[]
- val replicate: count: int -> initial: 'T -> 'T[]
+ val replicate: count: int -> initial: 'T -> 'T array
/// Returns a new array with the elements in reverse order.
///
@@ -2064,7 +2064,7 @@ module Array =
/// Evaluates to [| 2; 1; 0 |].
///
[]
- val rev: array: 'T[] -> 'T[]
+ val rev: array: 'T array -> 'T array
/// Like fold, but return the intermediary and final results.
///
@@ -2093,7 +2093,7 @@ module Array =
/// state, 1 the next state, -1 the next state, and 2 the final state.
///
[]
- val scan<'T, 'State> : folder: ('State -> 'T -> 'State) -> state: 'State -> array: 'T[] -> 'State[]
+ val scan<'T, 'State> : folder: ('State -> 'T -> 'State) -> state: 'State -> array: 'T array -> 'State array
/// Like foldBack, but return both the intermediary and final results.
///
@@ -2122,7 +2122,7 @@ module Array =
/// state, 3 the next state, 1 the next state, and 2 the final state.
///
[]
- val scanBack<'T, 'State> : folder: ('T -> 'State -> 'State) -> array: 'T[] -> state: 'State -> 'State[]
+ val scanBack<'T, 'State> : folder: ('T -> 'State -> 'State) -> array: 'T array -> state: 'State -> 'State array
/// Returns an array that contains one item only.
///
@@ -2137,7 +2137,7 @@ module Array =
/// Evaluates to [| 7 |].
///
[]
- val inline singleton: value: 'T -> 'T[]
+ val inline singleton: value: 'T -> 'T array
/// Sets an element of an array.
///
@@ -2166,7 +2166,7 @@ module Array =
/// Throws IndexOutOfRangeException
///
[]
- val set: array: 'T[] -> index: int -> value: 'T -> unit
+ val set: array: 'T array -> index: int -> value: 'T -> unit
/// Builds a new array that contains the elements of the given array, excluding the first N elements.
///
@@ -2206,7 +2206,7 @@ module Array =
/// Evaluates to [| "a"; "b"; "c"; "d" |].
///
[]
- val skip: count: int -> array: 'T[] -> 'T[]
+ val skip: count: int -> array: 'T array -> 'T array
/// Bypasses elements in an array while the given predicate returns True, and then returns
/// the remaining elements in a new array.
@@ -2228,7 +2228,7 @@ module Array =
///
///
[]
- val skipWhile: predicate: ('T -> bool) -> array: 'T[] -> 'T[]
+ val skipWhile: predicate: ('T -> bool) -> array: 'T array -> 'T array
/// Builds a new array that contains the given subrange specified by
/// starting index and length.
@@ -2261,7 +2261,7 @@ module Array =
/// Evaluates to [| 2; 3; 4 |].
///
[]
- val sub: array: 'T[] -> startIndex: int -> count: int -> 'T[]
+ val sub: array: 'T array -> startIndex: int -> count: int -> 'T array
/// Sorts the elements of an array, returning a new array. Elements are compared using .
///
@@ -2283,7 +2283,7 @@ module Array =
/// Evaluates to [| 1; 1; 3; 4; 6; 8 |].
///
[]
- val sort: array: 'T[] -> 'T[] when 'T: comparison
+ val sort: array: 'T array -> 'T array when 'T: comparison
/// Sorts the elements of an array, using the given projection for the keys and returning a new array.
/// Elements are compared using .
@@ -2307,7 +2307,7 @@ module Array =
/// Evaluates to [|"a"; "dd"; "bbb"; "cccc"|].
///
[]
- val sortBy: projection: ('T -> 'Key) -> array: 'T[] -> 'T[] when 'Key: comparison
+ val sortBy: projection: ('T -> 'Key) -> array: 'T array -> 'T array when 'Key: comparison
/// Sorts the elements of an array, using the given comparison function as the order, returning a new array.
///
@@ -2335,7 +2335,7 @@ module Array =
/// Evaluates to [|(0, "aa"); (2, "cc"); (3, "dd"); (1, "bbb")|].
///
[]
- val sortWith: comparer: ('T -> 'T -> int) -> array: 'T[] -> 'T[]
+ val sortWith: comparer: ('T -> 'T -> int) -> array: 'T array -> 'T array
/// Sorts the elements of an array by mutating the array in-place, using the given projection for the keys.
/// Elements are compared using .
@@ -2357,7 +2357,7 @@ module Array =
/// After evaluation array contains [|"a"; "dd"; "bbb"; "cccc"|].
///
[]
- val sortInPlaceBy: projection: ('T -> 'Key) -> array: 'T[] -> unit when 'Key: comparison
+ val sortInPlaceBy: projection: ('T -> 'Key) -> array: 'T array -> unit when 'Key: comparison
/// Sorts the elements of an array by mutating the array in-place, using the given comparison function as the order.
///
@@ -2380,7 +2380,7 @@ module Array =
/// After evaluation array contains [|(0, "aa"); (2, "cc"); (3, "dd"); (1, "bbb")|].
///
[]
- val sortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T[] -> unit
+ val sortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T array -> unit
/// Sorts the elements of an array by mutating the array in-place, using the given comparison function.
/// Elements are compared using .
@@ -2398,7 +2398,7 @@ module Array =
/// After evaluation array contains [| 1; 1; 3; 4; 6; 8 |].
///
[]
- val sortInPlace: array: 'T[] -> unit when 'T: comparison
+ val sortInPlace: array: 'T array -> unit when 'T: comparison
/// Splits an array into two arrays, at the given index.
///
@@ -2420,7 +2420,7 @@ module Array =
/// Evaluates front to [|8; 4; 3|] and back to [|1; 6; 1|].
///
[]
- val splitAt: index: int -> array: 'T[] -> ('T[] * 'T[])
+ val splitAt: index: int -> array: 'T array -> ('T array * 'T array)
/// Sorts the elements of an array, in descending order, returning a new array. Elements are compared using .
///
@@ -2440,7 +2440,7 @@ module Array =
/// Evaluates to [| 8; 6; 4; 3; 1; 1 |].
///
[]
- val inline sortDescending: array: 'T[] -> 'T[] when 'T: comparison
+ val inline sortDescending: array: 'T array -> 'T array when 'T: comparison
/// Sorts the elements of an array, in descending order, using the given projection for the keys and returning a new array.
/// Elements are compared using .
@@ -2462,7 +2462,7 @@ module Array =
/// Evaluates to [|"cccc"; "bbb"; "dd"; "a"|].
///
[]
- val inline sortByDescending: projection: ('T -> 'Key) -> array: 'T[] -> 'T[] when 'Key: comparison
+ val inline sortByDescending: projection: ('T -> 'Key) -> array: 'T array -> 'T array when 'Key: comparison
/// Returns the sum of the elements in the array.
///
@@ -2481,7 +2481,7 @@ module Array =
/// Evaluates to 11.
///
[]
- val inline sum: array: ^T[] -> ^T when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member Zero: ^T)
+ val inline sum: array: ^T array -> ^T when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member Zero: ^T)
/// Returns the sum of the results generated by applying the function to each element of the array.
///
@@ -2502,7 +2502,7 @@ module Array =
///
[]
val inline sumBy:
- projection: ('T -> ^U) -> array: 'T[] -> ^U
+ projection: ('T -> ^U) -> array: 'T array -> ^U
when ^U: (static member (+): ^U * ^U -> ^U) and ^U: (static member Zero: ^U)
/// Returns the first N elements of the array.
@@ -2547,7 +2547,7 @@ module Array =
/// Evaluates to [| |].
///
[]
- val take: count: int -> array: 'T[] -> 'T[]
+ val take: count: int -> array: 'T array -> 'T array
/// Returns an array that contains all elements of the original array while the
/// given predicate returns True, and then returns no further elements.
@@ -2569,7 +2569,7 @@ module Array =
///
///
[]
- val takeWhile: predicate: ('T -> bool) -> array: 'T[] -> 'T[]
+ val takeWhile: predicate: ('T -> bool) -> array: 'T array -> 'T array
/// Returns a new array containing the elements of the original except the first element.
///
@@ -2590,7 +2590,7 @@ module Array =
///
///
[]
- val tail: array: 'T[] -> 'T[]
+ val tail: array: 'T array -> 'T array
/// Builds a list from the given array.
///
@@ -2609,7 +2609,7 @@ module Array =
/// Evaluates to [ 1; 2; 5 ].
///
[]
- val toList: array: 'T[] -> 'T list
+ val toList: array: 'T array -> 'T list
/// Views the given array as a sequence.
///
@@ -2628,7 +2628,7 @@ module Array =
/// Evaluates to seq { 1; 2; 5 }.
///
[]
- val toSeq: array: 'T[] -> seq<'T>
+ val toSeq: array: 'T array -> seq<'T>
/// Returns the transpose of the given sequence of arrays.
///
@@ -2650,7 +2650,7 @@ module Array =
/// Evaluates to [|[|10; 11|]; [|20; 21|]; [|30; 31|]|].
///
[]
- val transpose: arrays: seq<'T[]> -> 'T[][]
+ val transpose: arrays: seq<'T array> -> 'T array array
/// Returns at most N elements in a new array.
///
@@ -2688,7 +2688,7 @@ module Array =
/// Evaluates to [| |].
///
[]
- val truncate: count: int -> array: 'T[] -> 'T[]
+ val truncate: count: int -> array: 'T array -> 'T array
/// Returns the first element for which the given function returns True.
/// Return None if no such element exists.
@@ -2718,7 +2718,7 @@ module Array =
/// Evaluates to None
///
[]
- val tryFind: predicate: ('T -> bool) -> array: 'T[] -> 'T option
+ val tryFind: predicate: ('T -> bool) -> array: 'T array -> 'T option
/// Returns the last element for which the given function returns True.
/// Return None if no such element exists.
@@ -2748,7 +2748,7 @@ module Array =
/// Evaluates to None
///
[]
- val tryFindBack: predicate: ('T -> bool) -> array: 'T[] -> 'T option
+ val tryFindBack: predicate: ('T -> bool) -> array: 'T array -> 'T option
/// Returns the index of the first element in the array
/// that satisfies the given predicate.
@@ -2778,7 +2778,7 @@ module Array =
/// Evaluates to None
///
[]
- val tryFindIndex: predicate: ('T -> bool) -> array: 'T[] -> int option
+ val tryFindIndex: predicate: ('T -> bool) -> array: 'T array -> int option
/// Tries to find the nth element in the array.
/// Returns None if index is negative or the input array does not contain enough elements.
@@ -2808,7 +2808,7 @@ module Array =
/// Evaluates to None.
///
[]
- val tryItem: index: int -> array: 'T[] -> 'T option
+ val tryItem: index: int -> array: 'T array -> 'T option
/// Returns the index of the last element in the array
/// that satisfies the given predicate.
@@ -2838,7 +2838,7 @@ module Array =
/// Evaluates to None
///
[]
- val tryFindIndexBack: predicate: ('T -> bool) -> array: 'T[] -> int option
+ val tryFindIndexBack: predicate: ('T -> bool) -> array: 'T array -> int option
/// Returns an array that contains the elements generated by the given computation.
/// The generator is repeatedly called to build the list until it returns `None`.
@@ -2857,7 +2857,7 @@ module Array =
/// Evaluates to [| 1; 2; 4; 8; 16; 32; 64 |]
///
[]
- val unfold<'T, 'State> : generator: ('State -> ('T * 'State) option) -> state: 'State -> 'T[]
+ val unfold<'T, 'State> : generator: ('State -> ('T * 'State) option) -> state: 'State -> 'T array
/// Splits an array of pairs into two arrays.
///
@@ -2876,7 +2876,7 @@ module Array =
/// Evaluates numbers to [|1; 2|] and names to [|"one"; "two"|].
///
[]
- val unzip: array: ('T1 * 'T2)[] -> ('T1[] * 'T2[])
+ val unzip: array: ('T1 * 'T2) array -> ('T1 array * 'T2 array)
/// Splits an array of triples into three arrays.
///
@@ -2895,7 +2895,7 @@ module Array =
/// Evaluates numbers to [|1; 2|], names to [|"one"; "two"|] and roman to [|"I"; "II"|].
///
[]
- val unzip3: array: ('T1 * 'T2 * 'T3)[] -> ('T1[] * 'T2[] * 'T3[])
+ val unzip3: array: ('T1 * 'T2 * 'T3) array -> ('T1 array * 'T2 array * 'T3 array)
/// Returns a new array containing only the elements of the array
/// for which the given predicate returns "true".
@@ -2918,7 +2918,7 @@ module Array =
/// Evaluates to [| 2; 4 |]
///
[]
- val where: predicate: ('T -> bool) -> array: 'T[] -> 'T[]
+ val where: predicate: ('T -> bool) -> array: 'T array -> 'T array
/// Returns an array of sliding windows containing elements drawn from the input
/// array. Each window is returned as a fresh array.
@@ -2940,7 +2940,7 @@ module Array =
/// Evaluates to [|[|1; 2; 3|]; [|2; 3; 4|]; [|3; 4; 5|]|]
///
[]
- val windowed: windowSize: int -> array: 'T[] -> 'T[][]
+ val windowed: windowSize: int -> array: 'T array -> 'T array array
/// Combines the two arrays into an array of pairs. The two arrays must have equal lengths, otherwise an ArgumentException is
/// raised.
@@ -2963,7 +2963,7 @@ module Array =
/// Evaluates to [| (1, "one"); (2, "two") |].
///
[]
- val zip: array1: 'T1[] -> array2: 'T2[] -> ('T1 * 'T2)[]
+ val zip: array1: 'T1 array -> array2: 'T2 array -> ('T1 * 'T2) array
/// Combines three arrays into an array of pairs. The three arrays must have equal lengths, otherwise an ArgumentException is
/// raised.
@@ -2988,7 +2988,7 @@ module Array =
/// Evaluates to [|(1, "one", "I"); (2, "two", "II")|].
///
[]
- val zip3: array1: 'T1[] -> array2: 'T2[] -> array3: 'T3[] -> ('T1 * 'T2 * 'T3)[]
+ val zip3: array1: 'T1 array -> array2: 'T2 array -> array3: 'T3 array -> ('T1 * 'T2 * 'T3) array
/// Return a new array with the item at a given index removed.
///
@@ -3008,7 +3008,7 @@ module Array =
/// Evaluates to [| 0; 2 |].
///
[]
- val removeAt: index: int -> source: 'T[] -> 'T[]
+ val removeAt: index: int -> source: 'T array -> 'T array
/// Return a new array with the number of items starting at a given index removed.
///
@@ -3029,7 +3029,7 @@ module Array =
/// Evaluates to [| 0; 3 |].
///
[]
- val removeManyAt: index: int -> count: int -> source: 'T[] -> 'T[]
+ val removeManyAt: index: int -> count: int -> source: 'T array -> 'T array
/// Return a new array with the item at a given index set to the new value.
///
@@ -3050,7 +3050,7 @@ module Array =
/// Evaluates to [| 0; 9; 2 |].
///
[]
- val updateAt: index: int -> value: 'T -> source: 'T[] -> 'T[]
+ val updateAt: index: int -> value: 'T -> source: 'T array -> 'T array
/// Return a new array with a new item inserted before the given index.
///
@@ -3071,7 +3071,7 @@ module Array =
/// Evaluates to [| 0; 9; 1; 2 |].
///
[]
- val insertAt: index: int -> value: 'T -> source: 'T[] -> 'T[]
+ val insertAt: index: int -> value: 'T -> source: 'T array -> 'T array
/// Return a new array with new items inserted before the given index.
///
@@ -3092,7 +3092,7 @@ module Array =
/// Evaluates to [| 0; 8; 9; 1; 2 |].
///
[]
- val insertManyAt: index: int -> values: seq<'T> -> source: 'T[] -> 'T[]
+ val insertManyAt: index: int -> values: seq<'T> -> source: 'T array -> 'T array
/// Provides parallel operations on arrays
module Parallel =
@@ -3121,7 +3121,7 @@ module Array =
///
[]
[]
- val forall: predicate: ('T -> bool) -> array: 'T[] -> bool
+ val forall: predicate: ('T -> bool) -> array: 'T array -> bool
/// Tests if any element of the array satisfies the given predicate.
///
@@ -3155,7 +3155,7 @@ module Array =
///
[]
[]
- val exists: predicate: ('T -> bool) -> array: 'T[] -> bool
+ val exists: predicate: ('T -> bool) -> array: 'T array -> bool
/// Returns the first element for which the given function returns True.
/// Returns None if no such element exists.
@@ -3186,7 +3186,7 @@ module Array =
///
[]
[]
- val tryFind: predicate: ('T -> bool) -> array: 'T[] -> 'T option
+ val tryFind: predicate: ('T -> bool) -> array: 'T array -> 'T option
/// Returns the index of the first element in the array
/// that satisfies the given predicate.
@@ -3217,7 +3217,7 @@ module Array =
///
[]
[]
- val tryFindIndex: predicate: ('T -> bool) -> array: 'T[] -> int option
+ val tryFindIndex: predicate: ('T -> bool) -> array: 'T array -> int option
/// Applies the given function to successive elements, returning the first
/// result where the function returns Some(x) for some x. If the function
@@ -3250,7 +3250,7 @@ module Array =
///
[]
[]
- val tryPick: chooser: ('T -> 'U option) -> array: 'T[] -> 'U option
+ val tryPick: chooser: ('T -> 'U option) -> array: 'T array -> 'U option
/// Applies a function to each element of the array in parallel, threading an accumulator argument
/// through the computation for each thread involved in the computation. After processing entire input, results from all threads are reduced together.
@@ -3278,7 +3278,7 @@ module Array =
[]
[]
- val inline reduce: reduction: ('T -> 'T -> 'T) -> array: 'T[] -> 'T
+ val inline reduce: reduction: ('T -> 'T -> 'T) -> array: 'T array -> 'T
/// Applies a projection function to each element of the array in parallel, reducing elements in each thread with a dedicated 'reduction' function.
/// After processing entire input, results from all threads are reduced together.
@@ -3306,7 +3306,7 @@ module Array =
[]
[]
- val reduceBy: projection: ('T -> 'U) -> reduction: ('U -> 'U -> 'U) -> array: 'T[] -> 'U
+ val reduceBy: projection: ('T -> 'U) -> reduction: ('U -> 'U -> 'U) -> array: 'T array -> 'U
/// Returns the greatest of all elements of the array, compared via Operators.max.
///
@@ -3330,7 +3330,7 @@ module Array =
///
///
///
- /// let inputs: int[]= [| |]
+ /// let inputs: int array= [| |]
///
/// inputs |> Array.Parallel.max
///
@@ -3338,7 +3338,7 @@ module Array =
///
[]
[]
- val inline max: array: 'T[] -> 'T when 'T: comparison
+ val inline max: array: 'T array -> 'T when 'T: comparison
/// Returns the greatest of all elements of the array, compared via Operators.max on the function result.
///
@@ -3363,7 +3363,7 @@ module Array =
///
///
///
- /// let inputs: string[]= [| |]
+ /// let inputs: string array= [| |]
///
/// inputs |> Array.Parallel.maxBy (fun s -> s.Length)
///
@@ -3371,7 +3371,7 @@ module Array =
///
[]
[]
- val inline maxBy: projection: ('T -> 'U) -> array: 'T[] -> 'T when 'U: comparison
+ val inline maxBy: projection: ('T -> 'U) -> array: 'T array -> 'T when 'U: comparison
/// Returns the smallest of all elements of the array, compared via Operators.min.
///
@@ -3395,7 +3395,7 @@ module Array =
///
///
///
- /// let inputs: int[]= [| |]
+ /// let inputs: int array= [| |]
///
/// inputs |> Array.Parallel.min
///
@@ -3403,7 +3403,7 @@ module Array =
///
[]
[]
- val inline min: array: 'T[] -> 'T when 'T: comparison
+ val inline min: array: 'T array -> 'T when 'T: comparison
/// Returns the lowest of all elements of the array, compared via Operators.min on the function result.
///
@@ -3428,7 +3428,7 @@ module Array =
///
///
///
- /// let inputs: string[]= [| |]
+ /// let inputs: string array= [| |]
///
/// inputs |> Array.Parallel.minBy (fun s -> s.Length)
///
@@ -3436,7 +3436,7 @@ module Array =
///
[]
[]
- val inline minBy: projection: ('T -> 'U) -> array: 'T[] -> 'T when 'U: comparison
+ val inline minBy: projection: ('T -> 'U) -> array: 'T array -> 'T when 'U: comparison
/// Returns the sum of the elements in the array.
///
@@ -3456,7 +3456,7 @@ module Array =
///
[]
[]
- val inline sum: array: ^T[] -> ^T when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member Zero: ^T)
+ val inline sum: array: ^T array -> ^T when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member Zero: ^T)
/// Returns the sum of the results generated by applying the function to each element of the array.
///
@@ -3478,7 +3478,7 @@ module Array =
[]
[]
val inline sumBy:
- projection: ('T -> ^U) -> array: 'T[] -> ^U
+ projection: ('T -> ^U) -> array: 'T array -> ^U
when ^U: (static member (+): ^U * ^U -> ^U) and ^U: (static member Zero: ^U)
/// Returns the average of the elements in the array.
@@ -3506,7 +3506,7 @@ module Array =
[]
[]
val inline average:
- array: ^T[] -> ^T
+ array: ^T array -> ^T
when ^T: (static member (+): ^T * ^T -> ^T) and ^T: (static member DivideByInt: ^T * int -> ^T)
/// Returns the average of the elements generated by applying the function to each element of the array.
@@ -3535,7 +3535,7 @@ module Array =
///
/// type Foo = { Bar: float }
///
- /// let input : Foo[] = [| |]
+ /// let input : Foo array = [| |]
///
/// input |> Array.Parallel.averageBy (fun foo -> foo.Bar)
///
@@ -3544,7 +3544,7 @@ module Array =
[]
[]
val inline averageBy:
- projection: ('T -> ^U) -> array: 'T[] -> ^U
+ projection: ('T -> ^U) -> array: 'T array -> ^U
when ^U: (static member (+): ^U * ^U -> ^U) and ^U: (static member DivideByInt: ^U * int -> ^U)
/// Apply the given function to each element of the array. Return
@@ -3579,7 +3579,7 @@ module Array =
/// Evaluates to [| 2 |]
///
[]
- val choose: chooser: ('T -> 'U option) -> array: 'T[] -> 'U[]
+ val choose: chooser: ('T -> 'U option) -> array: 'T array -> 'U array
/// For each element of the array, apply the given function. Concatenate all the results and return the combined array.
///
@@ -3589,13 +3589,13 @@ module Array =
///
/// The input array.
///
- /// 'U[]
+ /// 'U array
///
/// Thrown when the input array is null.
///
///
///
- /// type Foo = { Bar: int[] }
+ /// type Foo = { Bar: int array }
///
/// let input = [| {Bar = [| 1; 2 |]}; {Bar = [| 3; 4 |]} |]
///
@@ -3613,7 +3613,7 @@ module Array =
/// Evaluates to [| 1; 2; 3; 4 |]
///
[]
- val collect: mapping: ('T -> 'U[]) -> array: 'T[] -> 'U[]
+ val collect: mapping: ('T -> 'U array) -> array: 'T array -> 'U array
/// Build a new array whose elements are the results of applying the given function
/// to each of the elements of the array.
@@ -3637,7 +3637,7 @@ module Array =
/// Evaluates to [| 1; 3; 2 |]
///
[]
- val map: mapping: ('T -> 'U) -> array: 'T[] -> 'U[]
+ val map: mapping: ('T -> 'U) -> array: 'T array -> 'U array
/// 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
@@ -3662,7 +3662,7 @@ module Array =
/// Evaluates to [| 10; 11; 12 |]
///
[]
- val mapi: mapping: (int -> 'T -> 'U) -> array: 'T[] -> 'U[]
+ val mapi: mapping: (int -> 'T -> 'U) -> array: 'T array -> 'U array
/// Applies a key-generating function to each element of an array in parallel and yields an array of
/// unique keys. Each unique key contains an array of all elements that match
@@ -3689,7 +3689,7 @@ module Array =
[]
[]
- val groupBy: projection: ('T -> 'Key) -> array: 'T[] -> ('Key * 'T[])[] when 'Key: equality
+ val groupBy: projection: ('T -> 'Key) -> array: 'T array -> ('Key * 'T array) array when 'Key: equality
/// Apply the given function to each element of the array.
///
@@ -3715,7 +3715,7 @@ module Array =
///
///
[]
- val iter: action: ('T -> unit) -> array: 'T[] -> unit
+ val iter: action: ('T -> unit) -> array: 'T array -> unit
/// Apply the given function to each element of the array. The integer passed to the
/// function indicates the index of element.
@@ -3742,7 +3742,7 @@ module Array =
///
///
[]
- val iteri: action: (int -> 'T -> unit) -> array: 'T[] -> unit
+ val iteri: action: (int -> 'T -> unit) -> array: 'T array -> unit
/// Create an array given the dimension and a generator function to compute the elements.
///
@@ -3761,7 +3761,7 @@ module Array =
/// Evaluates to [| 5; 6; 7; 8 |]
///
[]
- val init: count: int -> initializer: (int -> 'T) -> 'T[]
+ val init: count: int -> initializer: (int -> 'T) -> 'T array
/// Split the collection into two collections, containing the
/// elements for which the given predicate returns "true" and "false"
@@ -3786,7 +3786,7 @@ module Array =
/// Evaluates to ([|2; 4|], [|1; 3|]).
///
[]
- val partition: predicate: ('T -> bool) -> array: 'T[] -> 'T[] * 'T[]
+ val partition: predicate: ('T -> bool) -> array: 'T array -> 'T array * 'T array
/// Sorts the elements of an array in parallel, returning a new array. Elements are compared using .
///
@@ -3809,7 +3809,7 @@ module Array =
///
[]
[]
- val sort: array: 'T[] -> 'T[] when 'T: comparison
+ val sort: array: 'T array -> 'T array when 'T: comparison
/// Sorts the elements of an array in parallel, using the given projection for the keys and returning a new array.
/// Elements are compared using .
@@ -3835,7 +3835,7 @@ module Array =
[]
[]
- val sortBy: projection: ('T -> 'Key) -> array: 'T[] -> 'T[] when 'Key: comparison
+ val sortBy: projection: ('T -> 'Key) -> array: 'T array -> 'T array when 'Key: comparison
/// Sorts the elements of an array in parallel, using the given comparison function as the order, returning a new array.
///
@@ -3864,7 +3864,7 @@ module Array =
///
[]
[]
- val sortWith: comparer: ('T -> 'T -> int) -> array: 'T[] -> 'T[]
+ val sortWith: comparer: ('T -> 'T -> int) -> array: 'T array -> 'T array
/// Sorts the elements of an array by mutating the array in-place in parallel, using the given projection for the keys.
/// Elements are compared using .
@@ -3887,7 +3887,7 @@ module Array =
///
[]
[]
- val sortInPlaceBy: projection: ('T -> 'Key) -> array: 'T[] -> unit when 'Key: comparison
+ val sortInPlaceBy: projection: ('T -> 'Key) -> array: 'T array -> unit when 'Key: comparison
/// Sorts the elements of an array by mutating the array in-place in parallel, using the given comparison function as the order.
///
@@ -3911,7 +3911,7 @@ module Array =
///
[]
[]
- val sortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T[] -> unit
+ val sortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T array -> unit
/// Sorts the elements of an array by mutating the array in-place in parallel, using the given comparison function.
/// Elements are compared using .
@@ -3930,7 +3930,7 @@ module Array =
///
[]
[]
- val sortInPlace: array: 'T[] -> unit when 'T: comparison
+ val sortInPlace: array: 'T array -> unit when 'T: comparison
/// Sorts the elements of an array in parallel, in descending order, returning a new array. Elements are compared using .
///
@@ -3951,7 +3951,7 @@ module Array =
///
[]
[]
- val sortDescending: array: 'T[] -> 'T[] when 'T: comparison
+ val sortDescending: array: 'T array -> 'T array when 'T: comparison
/// Sorts the elements of an array in parallel, in descending order, using the given projection for the keys and returning a new array.
/// Elements are compared using .
@@ -3974,7 +3974,7 @@ module Array =
///
[]
[]
- val sortByDescending: projection: ('T -> 'Key) -> array: 'T[] -> 'T[] when 'Key: comparison
+ val sortByDescending: projection: ('T -> 'Key) -> array: 'T array -> 'T array when 'Key: comparison
/// Combines the two arrays into an array of pairs. The two arrays must have equal lengths, otherwise an ArgumentException is
/// raised.
@@ -3998,7 +3998,7 @@ module Array =
///
[]
[]
- val zip: array1: 'T1[] -> array2: 'T2[] -> ('T1 * 'T2)[]
+ val zip: array1: 'T1 array -> array2: 'T2 array -> ('T1 * 'T2) array
/// Returns a new collection containing only the elements of the collection
/// for which the given predicate returns true.
@@ -4020,4 +4020,4 @@ module Array =
///
[]
[]
- val filter: predicate: ('T -> bool) -> array: 'T[] -> 'T[]
+ val filter: predicate: ('T -> bool) -> array: 'T array -> 'T array
diff --git a/src/FSharp.Core/async.fsi b/src/FSharp.Core/async.fsi
index 35b3e227a5d..6b621176c9d 100644
--- a/src/FSharp.Core/async.fsi
+++ b/src/FSharp.Core/async.fsi
@@ -428,7 +428,7 @@ namespace Microsoft.FSharp.Control
///
/// This will print "3", "5", "7", "11" (in any order) in 1-2 seconds and then [| false; true; true; true; false; true |].
///
- static member Parallel : computations:seq> -> Async<'T[]>
+ static member Parallel : computations:seq> -> Async<'T array>
/// Creates an asynchronous computation that executes all the given asynchronous computations,
/// initially queueing each as work items and using a fork/join pattern.
@@ -475,7 +475,7 @@ namespace Microsoft.FSharp.Control
/// This will print "3", "5" (in any order) in 1-2 seconds, and then "7", "11" (in any order) in 1-2 more seconds and then
/// [| false; true; true; true; false; true |].
///
- static member Parallel : computations:seq> * ?maxDegreeOfParallelism : int -> Async<'T[]>
+ static member Parallel : computations:seq> * ?maxDegreeOfParallelism : int -> Async<'T array>
/// Creates an asynchronous computation that executes all the given asynchronous computations sequentially.
///
@@ -520,7 +520,7 @@ namespace Microsoft.FSharp.Control
/// This will print "3", "5", "7", "11" with ~1-2 seconds between them except for pauses where even numbers would be and then
/// prints [| false; true; true; true; false; true |].
///
- static member Sequential : computations:seq> -> Async<'T[]>
+ static member Sequential : computations:seq> -> Async<'T array>
///
/// Creates an asynchronous computation that executes all given asynchronous computations in parallel,
@@ -1409,17 +1409,17 @@ namespace Microsoft.FSharp.Control
///
///
[] // give the extension member a nice, unmangled compiled name, unique within this module
- member AsyncRead : buffer:byte[] * ?offset:int * ?count:int -> Async
+ member AsyncRead : buffer:byte array * ?offset:int * ?count:int -> Async
/// Returns an asynchronous computation that will read the given number of bytes from the stream.
///
/// The number of bytes to read.
///
- /// An asynchronous computation that returns the read byte[] when run.
+ /// An asynchronous computation that returns the read byte array when run.
///
///
[] // give the extension member a nice, unmangled compiled name, unique within this module
- member AsyncRead : count:int -> Async
+ member AsyncRead : count:int -> Async
/// Returns an asynchronous computation that will write the given bytes to the stream.
///
@@ -1435,7 +1435,7 @@ namespace Microsoft.FSharp.Control
///
///
[] // give the extension member a nice, unmangled compiled name, unique within this module
- member AsyncWrite : buffer:byte[] * ?offset:int * ?count:int -> Async
+ member AsyncWrite : buffer:byte array * ?offset:int * ?count:int -> Async
///The family of first class event values for delegate types that satisfy the F# delegate constraint.
@@ -1522,7 +1522,7 @@ namespace Microsoft.FSharp.Control
///
/// Downloads the data in bytes and decodes it to a string.
[] // give the extension member a nice, unmangled compiled name, unique within this module
- member AsyncDownloadData : address:System.Uri -> Async
+ member AsyncDownloadData : address:System.Uri -> Async
/// Returns an asynchronous computation that, when run, will wait for the download of the given URI to specified file.
///
diff --git a/src/FSharp.Core/collections.fsi b/src/FSharp.Core/collections.fsi
index 1e8494aa9e3..9baf6097394 100644
--- a/src/FSharp.Core/collections.fsi
+++ b/src/FSharp.Core/collections.fsi
@@ -70,7 +70,7 @@ module HashIdentity =
///
/// open System.Collections.Generic
///
- /// let dict = new Dictionary<int[],int>(HashIdentity.Structural)
+ /// let dict = new Dictionary<int array,int>(HashIdentity.Structural)
///
/// let arr1 = [| 1;2;3 |]
/// let arr2 = [| 1;2;3 |]
@@ -134,7 +134,7 @@ module HashIdentity =
///
/// open System.Collections.Generic
///
- /// let dict = new Dictionary<int[],int>(HashIdentity.Structural)
+ /// let dict = new Dictionary<int array,int>(HashIdentity.Structural)
///
/// let arr1 = [| 1;2;3 |]
/// let arr2 = [| 1;2;3 |]
diff --git a/src/FSharp.Core/event.fsi b/src/FSharp.Core/event.fsi
index 12557f0dc22..09225b9b0fa 100644
--- a/src/FSharp.Core/event.fsi
+++ b/src/FSharp.Core/event.fsi
@@ -23,7 +23,7 @@ type DelegateEvent<'Delegate when 'Delegate :> System.Delegate> =
/// The parameters for the event.
///
///
- member Trigger: args: obj[] -> unit
+ member Trigger: args: obj array -> unit
/// Publishes the event as a first class event value.
///
diff --git a/src/FSharp.Core/fslib-extra-pervasives.fsi b/src/FSharp.Core/fslib-extra-pervasives.fsi
index 619f5ff05d4..bd4bf0ee8b5 100644
--- a/src/FSharp.Core/fslib-extra-pervasives.fsi
+++ b/src/FSharp.Core/fslib-extra-pervasives.fsi
@@ -459,7 +459,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
new : systemRuntimeContainsType : (string -> bool) -> TypeProviderConfig
/// Create a configuration which calls the given functions for the corresponding operation.
- new : systemRuntimeContainsType : (string -> bool) * getReferencedAssemblies : (unit -> string[]) -> TypeProviderConfig
+ new : systemRuntimeContainsType : (string -> bool) * getReferencedAssemblies : (unit -> string array) -> TypeProviderConfig
/// Get the full path to use to resolve relative paths in any file name arguments given to the type provider instance.
member ResolutionFolder : string with get,set
@@ -468,7 +468,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
member RuntimeAssembly : string with get,set
/// Get the referenced assemblies for the type provider instance.
- member ReferencedAssemblies : string[] with get,set
+ member ReferencedAssemblies : string array with get,set
/// Get the full path to use for temporary files for the type provider instance.
member TemporaryFolder : string with get,set
@@ -493,13 +493,13 @@ namespace Microsoft.FSharp.Core.CompilerServices
abstract NamespaceName : string
/// The sub-namespaces in this namespace. An optional member to prevent generation of namespaces until an outer namespace is explored.
- abstract GetNestedNamespaces : unit -> IProvidedNamespace[]
+ abstract GetNestedNamespaces : unit -> IProvidedNamespace array
///
/// The top-level types
///
///
- abstract GetTypes : unit -> Type[]
+ abstract GetTypes : unit -> Type array
///
/// Compilers call this method to query a type provider for a type name.
@@ -518,7 +518,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
///
/// Gets the namespaces provided by the type provider.
///
- abstract GetNamespaces : unit -> IProvidedNamespace[]
+ abstract GetNamespaces : unit -> IProvidedNamespace array
///
/// Get the static parameters for a provided type.
@@ -527,7 +527,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
/// A type returned by GetTypes or ResolveTypeName
///
///
- abstract GetStaticParameters : typeWithoutArguments:Type -> ParameterInfo[]
+ abstract GetStaticParameters : typeWithoutArguments:Type -> ParameterInfo array
///
/// Apply static arguments to a provided type that accepts static arguments.
@@ -540,7 +540,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
/// the static parameters, indexed by name
///
///
- abstract ApplyStaticArguments : typeWithoutArguments:Type * typePathWithArguments:string[] * staticArguments:obj[] -> Type
+ abstract ApplyStaticArguments : typeWithoutArguments:Type * typePathWithArguments:string array * staticArguments:obj array -> Type
///
/// Called by the compiler to ask for an Expression tree to replace the given MethodBase with.
@@ -550,7 +550,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
/// Expressions that represent the parameters to this call.
///
/// An expression that the compiler will use in place of the given method base.
- abstract GetInvokerExpression : syntheticMethodBase:MethodBase * parameters:Expr[] -> Expr
+ abstract GetInvokerExpression : syntheticMethodBase:MethodBase * parameters:Expr array -> Expr
///
/// Triggered when an assumption changes that invalidates the resolutions so far reported by the provider
@@ -561,7 +561,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
///
/// Get the physical contents of the given logical provided assembly.
///
- abstract GetGeneratedAssemblyContents : assembly:Assembly -> byte[]
+ abstract GetGeneratedAssemblyContents : assembly:Assembly -> byte array
/// Represents additional, optional information for a type provider component
type ITypeProvider2 =
@@ -573,7 +573,7 @@ namespace Microsoft.FSharp.Core.CompilerServices
/// A method returned by GetMethod on a provided type
///
/// The static parameters of the provided method, if any
- abstract GetStaticParametersForMethod : methodWithoutArguments:MethodBase -> ParameterInfo[]
+ abstract GetStaticParametersForMethod : methodWithoutArguments:MethodBase -> ParameterInfo array
///
/// Apply static arguments to a provided method that accepts static arguments.
@@ -584,4 +584,4 @@ namespace Microsoft.FSharp.Core.CompilerServices
/// the values of the static parameters, indexed by name
///
/// The provided method definition corresponding to the given static parameter values
- abstract ApplyStaticArgumentsForMethod : methodWithoutArguments:MethodBase * methodNameWithArguments:string * staticArguments:obj[] -> MethodBase
+ abstract ApplyStaticArgumentsForMethod : methodWithoutArguments:MethodBase * methodNameWithArguments:string * staticArguments:obj array -> MethodBase
diff --git a/src/FSharp.Core/list.fsi b/src/FSharp.Core/list.fsi
index d746198f7fb..05ff605b247 100644
--- a/src/FSharp.Core/list.fsi
+++ b/src/FSharp.Core/list.fsi
@@ -1594,7 +1594,7 @@ module List =
/// Evaluates to [ 1; 2; 5 ].
///
[]
- val ofArray : array:'T[] -> 'T list
+ val ofArray : array:'T array -> 'T list
/// Builds a new list from the given enumerable object.
///
@@ -2176,7 +2176,7 @@ module List =
/// Evaluates to [| 1; 2; 5 |].
///
[]
- val toArray: list:'T list -> 'T[]
+ val toArray: list:'T list -> 'T array
/// Views the given list as a sequence.
///
diff --git a/src/FSharp.Core/local.fsi b/src/FSharp.Core/local.fsi
index 9c2ebc0bbfd..1b210474062 100644
--- a/src/FSharp.Core/local.fsi
+++ b/src/FSharp.Core/local.fsi
@@ -72,10 +72,10 @@ module internal List =
val splitInto: int -> 'T list -> 'T list list
val zip: 'T1 list -> 'T2 list -> ('T1 * 'T2) list
val zip3: 'T1 list -> 'T2 list -> 'T3 list -> ('T1 * 'T2 * 'T3) list
- val ofArray: 'T[] -> 'T list
+ val ofArray: 'T array -> 'T list
val take: int -> 'T list -> 'T list
val takeWhile: ('T -> bool) -> 'T list -> 'T list
- val toArray: 'T list -> 'T[]
+ val toArray: 'T list -> 'T array
val inline ofSeq: seq<'T> -> 'T List
val splitAt: int -> 'T list -> ('T list * 'T list)
val transpose: 'T list list -> 'T list list
@@ -84,40 +84,40 @@ module internal List =
module internal Array =
// The input parameter should be checked by callers if necessary
- val inline zeroCreateUnchecked: int -> 'T[]
+ val inline zeroCreateUnchecked: int -> 'T array
- val inline init: int -> (int -> 'T) -> 'T[]
+ val inline init: int -> (int -> 'T) -> 'T array
- val splitInto: int -> 'T[] -> 'T[][]
+ val splitInto: int -> 'T array -> 'T array array
- val findBack: predicate: ('T -> bool) -> array: 'T[] -> 'T
+ val findBack: predicate: ('T -> bool) -> array: 'T array -> 'T
- val tryFindBack: predicate: ('T -> bool) -> array: 'T[] -> 'T option
+ val tryFindBack: predicate: ('T -> bool) -> array: 'T array -> 'T option
- val findIndexBack: predicate: ('T -> bool) -> array: 'T[] -> int
+ val findIndexBack: predicate: ('T -> bool) -> array: 'T array -> int
- val tryFindIndexBack: predicate: ('T -> bool) -> array: 'T[] -> int option
+ val tryFindIndexBack: predicate: ('T -> bool) -> array: 'T array -> int option
- val mapFold: ('State -> 'T -> 'U * 'State) -> 'State -> 'T[] -> 'U[] * 'State
+ val mapFold: ('State -> 'T -> 'U * 'State) -> 'State -> 'T array -> 'U array * 'State
- val mapFoldBack: ('T -> 'State -> 'U * 'State) -> 'T[] -> 'State -> 'U[] * 'State
+ val mapFoldBack: ('T -> 'State -> 'U * 'State) -> 'T array -> 'State -> 'U array * 'State
- val permute: indexMap: (int -> int) -> 'T[] -> 'T[]
+ val permute: indexMap: (int -> int) -> 'T array -> 'T array
val scanSubRight:
- f: ('T -> 'State -> 'State) -> array: 'T[] -> start: int -> fin: int -> initState: 'State -> 'State[]
+ f: ('T -> 'State -> 'State) -> array: 'T array -> start: int -> fin: int -> initState: 'State -> 'State array
- val inline subUnchecked: int -> int -> 'T[] -> 'T[]
+ val inline subUnchecked: int -> int -> 'T array -> 'T array
- val unstableSortInPlaceBy: projection: ('T -> 'Key) -> array: 'T[] -> unit when 'Key: comparison
+ val unstableSortInPlaceBy: projection: ('T -> 'Key) -> array: 'T array -> unit when 'Key: comparison
- val unstableSortInPlace: array: 'T[] -> unit when 'T: comparison
+ val unstableSortInPlace: array: 'T array -> unit when 'T: comparison
- val stableSortInPlaceBy: projection: ('T -> 'Key) -> array: 'T[] -> unit when 'Key: comparison
+ val stableSortInPlaceBy: projection: ('T -> 'Key) -> array: 'T array -> unit when 'Key: comparison
- val stableSortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T[] -> unit
+ val stableSortInPlaceWith: comparer: ('T -> 'T -> int) -> array: 'T array -> unit
- val stableSortInPlace: array: 'T[] -> unit when 'T: comparison
+ val stableSortInPlace: array: 'T array -> unit when 'T: comparison
module internal Seq =
val tryLastV: 'T seq -> 'T ValueOption
diff --git a/src/FSharp.Core/map.fsi b/src/FSharp.Core/map.fsi
index 49913cadbda..e6b0b1afb30 100644
--- a/src/FSharp.Core/map.fsi
+++ b/src/FSharp.Core/map.fsi
@@ -294,7 +294,7 @@ module Map =
///
///
[]
- val ofArray: elements: ('Key * 'T)[] -> Map<'Key, 'T>
+ val ofArray: elements: ('Key * 'T) array -> Map<'Key, 'T>
/// Returns a new map made from the given bindings.
///
@@ -361,7 +361,7 @@ module Map =
///
///
[]
- val toArray: table: Map<'Key, 'T> -> ('Key * 'T)[]
+ val toArray: table: Map<'Key, 'T> -> ('Key * 'T) array
/// Is the map empty?
///
diff --git a/src/FSharp.Core/option.fsi b/src/FSharp.Core/option.fsi
index d22e80be420..d6375c6d39e 100644
--- a/src/FSharp.Core/option.fsi
+++ b/src/FSharp.Core/option.fsi
@@ -380,7 +380,7 @@ module Option =
///
///
[]
- val inline toArray: option: 'T option -> 'T[]
+ val inline toArray: option: 'T option -> 'T array
/// Convert the option to a list of length 0 or 1.
///
@@ -828,7 +828,7 @@ module ValueOption =
///
///
[]
- val inline toArray: voption: 'T voption -> 'T[]
+ val inline toArray: voption: 'T voption -> 'T array
/// Convert the value option to a list of length 0 or 1.
///
diff --git a/src/FSharp.Core/prim-types-prelude.fsi b/src/FSharp.Core/prim-types-prelude.fsi
index f9f8715c1ff..b9bbc5c125f 100644
--- a/src/FSharp.Core/prim-types-prelude.fsi
+++ b/src/FSharp.Core/prim-types-prelude.fsi
@@ -133,7 +133,7 @@ namespace Microsoft.FSharp.Core
/// Basic Types
type uint = uint32
- /// Single dimensional, zero-based arrays, written int[], string[] etc.
+ /// Single dimensional, zero-based arrays, written int array, string array etc.
///
/// Use the values in the Array module to manipulate values
/// of this type, or the notation arr.[x] to get/set array
@@ -396,7 +396,7 @@ namespace Microsoft.FSharp.Core
type 'T ``[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,]`` =
(# "!0[0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...,0 ...]" #)
- /// Single dimensional, zero-based arrays, written int[], string[] etc.
+ /// Single dimensional, zero-based arrays, written int array, string array etc.
///
/// Use the values in the module to manipulate values
/// of this type, or the notation arr.[x] to get/set array
diff --git a/src/FSharp.Core/prim-types.fsi b/src/FSharp.Core/prim-types.fsi
index 655a31a8c87..dc4b9cc22dd 100644
--- a/src/FSharp.Core/prim-types.fsi
+++ b/src/FSharp.Core/prim-types.fsi
@@ -691,7 +691,7 @@ namespace Microsoft.FSharp.Core
/// The name of the resource needed to resolve the source construct.
///
/// CompilationMappingAttribute
- new: resourceName:string * typeDefinitions:System.Type[] -> CompilationMappingAttribute
+ new: resourceName:string * typeDefinitions:System.Type array -> CompilationMappingAttribute
/// Indicates the relationship between the compiled entity and F# source code
member SourceConstructFlags: SourceConstructFlags
@@ -706,7 +706,7 @@ namespace Microsoft.FSharp.Core
member ResourceName: string
/// Indicates the type definitions needed to resolve the source construct
- member TypeDefinitions: System.Type[]
+ member TypeDefinitions: System.Type array
/// This attribute is inserted automatically by the F# compiler to tag
/// methods which are given the 'CompiledName' attribute.
@@ -809,7 +809,7 @@ namespace Microsoft.FSharp.Core
/// Indicates the number of arguments in each argument group.
///
/// CompilationArgumentCountsAttribute
- new: counts:int[] -> CompilationArgumentCountsAttribute
+ new: counts:int array -> CompilationArgumentCountsAttribute
/// Indicates the number of arguments in each argument group
member Counts: System.Collections.Generic.IEnumerable
@@ -1785,7 +1785,7 @@ namespace Microsoft.FSharp.Core
/// The standard overloaded associative (indexed) lookup operator
//[]
- val inline GetArray: source: 'T[] -> index: int -> 'T
+ val inline GetArray: source: 'T array -> index: int -> 'T
/// The standard overloaded associative (2-indexed) lookup operator
//[]
@@ -1801,7 +1801,7 @@ namespace Microsoft.FSharp.Core
/// The standard overloaded associative (indexed) mutation operator
//[]
- val inline SetArray: target: 'T[] -> index: int -> value: 'T -> unit
+ val inline SetArray: target: 'T array -> index: int -> value: 'T -> unit
/// The standard overloaded associative (2-indexed) mutation operator
//[]
@@ -4744,7 +4744,7 @@ namespace Microsoft.FSharp.Core
/// The end index.
///
/// The sub array from the input indices.
- val inline GetArraySlice: source:'T[] -> start:int option -> finish:int option -> 'T[]
+ val inline GetArraySlice: source:'T array -> start:int option -> finish:int option -> 'T array
/// Sets a slice of an array
///
@@ -4752,7 +4752,7 @@ namespace Microsoft.FSharp.Core
/// The start index.
/// The end index.
/// The source array.
- val inline SetArraySlice: target:'T[] -> start:int option -> finish:int option -> source:'T[] -> unit
+ val inline SetArraySlice: target:'T array -> start:int option -> finish:int option -> source:'T array -> unit
/// Gets a region slice of an array
///
@@ -4773,7 +4773,7 @@ namespace Microsoft.FSharp.Core
/// The end index of the second dimension.
///
/// The sub array from the input indices.
- val inline GetArraySlice2DFixed1: source:'T[,] -> index1:int -> start2:int option -> finish2:int option -> 'T[]
+ val inline GetArraySlice2DFixed1: source:'T[,] -> index1:int -> start2:int option -> finish2:int option -> 'T array
/// Gets a vector slice of a 2D array. The index of the second dimension is fixed.
///
@@ -4783,7 +4783,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the second dimension.
///
/// The sub array from the input indices.
- val inline GetArraySlice2DFixed2: source:'T[,] -> start1:int option -> finish1:int option -> index2: int -> 'T[]
+ val inline GetArraySlice2DFixed2: source:'T[,] -> start1:int option -> finish1:int option -> index2: int -> 'T array
/// Sets a region slice of an array
///
@@ -4802,7 +4802,7 @@ namespace Microsoft.FSharp.Core
/// The start index of the second dimension.
/// The end index of the second dimension.
/// The source array.
- val inline SetArraySlice2DFixed1: target:'T[,] -> index1:int -> start2:int option -> finish2:int option -> source:'T[] -> unit
+ val inline SetArraySlice2DFixed1: target:'T[,] -> index1:int -> start2:int option -> finish2:int option -> source:'T array -> unit
/// Sets a vector slice of a 2D array. The index of the second dimension is fixed.
///
@@ -4811,7 +4811,7 @@ namespace Microsoft.FSharp.Core
/// The end index of the first dimension.
/// The index of the second dimension.
/// The source array.
- val inline SetArraySlice2DFixed2: target:'T[,] -> start1:int option -> finish1:int option -> index2:int -> source:'T[] -> unit
+ val inline SetArraySlice2DFixed2: target:'T[,] -> start1:int option -> finish1:int option -> index2:int -> source:'T array -> unit
/// Gets a slice of an array
///
@@ -4871,7 +4871,7 @@ namespace Microsoft.FSharp.Core
/// The end index of the third dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice3DFixedDouble1: source:'T[,,] -> index1:int -> index2:int -> start3:int option -> finish3:int option -> 'T[]
+ val inline GetArraySlice3DFixedDouble1: source:'T[,,] -> index1:int -> index2:int -> start3:int option -> finish3:int option -> 'T array
/// Gets a 1D slice of a 3D array.
///
@@ -4882,7 +4882,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the third dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice3DFixedDouble2: source:'T[,,] -> index1:int -> start2:int option -> finish2:int option -> index3:int -> 'T[]
+ val inline GetArraySlice3DFixedDouble2: source:'T[,,] -> index1:int -> start2:int option -> finish2:int option -> index3:int -> 'T array
/// Gets a 1D slice of a 3D array.
///
@@ -4893,7 +4893,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the third dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice3DFixedDouble3: source:'T[,,] -> start1:int option -> finish1:int option -> index2:int -> index3:int -> 'T[]
+ val inline GetArraySlice3DFixedDouble3: source:'T[,,] -> start1:int option -> finish1:int option -> index2:int -> index3:int -> 'T array
/// Sets a slice of an array
///
@@ -4956,7 +4956,7 @@ namespace Microsoft.FSharp.Core
/// The source array.
///
/// The one dimensional sub array from the given indices.
- val inline SetArraySlice3DFixedDouble1: target: 'T[,,] -> index1: int -> index2: int -> start3: int option -> finish3: int option -> source: 'T[] -> unit
+ val inline SetArraySlice3DFixedDouble1: target: 'T[,,] -> index1: int -> index2: int -> start3: int option -> finish3: int option -> source: 'T array -> unit
/// Sets a 1D slice of a 3D array.
///
@@ -4968,7 +4968,7 @@ namespace Microsoft.FSharp.Core
/// The source array.
///
/// The one dimensional sub array from the given indices.
- val inline SetArraySlice3DFixedDouble2: target: 'T[,,] -> index1: int -> start2: int option -> finish2: int option -> index3: int -> source: 'T[] -> unit
+ val inline SetArraySlice3DFixedDouble2: target: 'T[,,] -> index1: int -> start2: int option -> finish2: int option -> index3: int -> source: 'T array -> unit
/// Sets a 1D slice of a 3D array.
///
@@ -4980,7 +4980,7 @@ namespace Microsoft.FSharp.Core
/// The source array.
///
/// The one dimensional sub array from the given indices.
- val inline SetArraySlice3DFixedDouble3: target: 'T[,,] -> start1: int option -> finish1: int option -> index2: int -> index3: int -> source: 'T[] -> unit
+ val inline SetArraySlice3DFixedDouble3: target: 'T[,,] -> start1: int option -> finish1: int option -> index2: int -> index3: int -> source: 'T array -> unit
/// Gets a slice of an array
///
@@ -5141,7 +5141,7 @@ namespace Microsoft.FSharp.Core
/// The end index of the fourth dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice4DFixedTriple4: source: 'T[,,,] -> index1: int -> index2: int -> index3: int -> start4: int option -> finish4: int option -> 'T[]
+ val inline GetArraySlice4DFixedTriple4: source: 'T[,,,] -> index1: int -> index2: int -> index3: int -> start4: int option -> finish4: int option -> 'T array
/// Gets a 1D slice of a 4D array
///
@@ -5153,7 +5153,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the fourth dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice4DFixedTriple3: source: 'T[,,,] -> index1: int -> index2: int -> start3: int option -> finish3: int option -> index4: int -> 'T[]
+ val inline GetArraySlice4DFixedTriple3: source: 'T[,,,] -> index1: int -> index2: int -> start3: int option -> finish3: int option -> index4: int -> 'T array
/// Gets a 1D slice of a 4D array
///
@@ -5165,7 +5165,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the fourth dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice4DFixedTriple2: source:'T[,,,] -> index1: int -> start2: int option -> finish2: int option -> index3: int -> index4: int -> 'T[]
+ val inline GetArraySlice4DFixedTriple2: source:'T[,,,] -> index1: int -> start2: int option -> finish2: int option -> index3: int -> index4: int -> 'T array
/// Gets a 1D slice of a 4D array
///
@@ -5177,7 +5177,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the fourth dimension.
///
/// The one dimensional sub array from the given indices.
- val inline GetArraySlice4DFixedTriple1: source: 'T[,,,] -> start1: int option -> finish1: int option -> index2: int -> index3: int -> index4: int -> 'T[]
+ val inline GetArraySlice4DFixedTriple1: source: 'T[,,,] -> start1: int option -> finish1: int option -> index2: int -> index3: int -> index4: int -> 'T array
/// Sets a 3D slice of a 4D array
///
@@ -5312,7 +5312,7 @@ namespace Microsoft.FSharp.Core
/// The start index of the fourth dimension.
/// The end index of the fourth dimension.
/// The source array.
- val inline SetArraySlice4DFixedTriple4: target:'T[,,,] -> index1:int -> index2:int -> index3:int -> start4:int option -> finish4:int option -> source: 'T[] -> unit
+ val inline SetArraySlice4DFixedTriple4: target:'T[,,,] -> index1:int -> index2:int -> index3:int -> start4:int option -> finish4:int option -> source: 'T array -> unit
/// Sets a 1D slice of a 4D array
///
@@ -5323,7 +5323,7 @@ namespace Microsoft.FSharp.Core
/// The end index of the third dimension.
/// The fixed index of the fourth dimension.
/// The source array.
- val inline SetArraySlice4DFixedTriple3: target:'T[,,,] -> index1:int -> index2:int -> start3:int option -> finish3:int option -> index4:int -> source: 'T[] -> unit
+ val inline SetArraySlice4DFixedTriple3: target:'T[,,,] -> index1:int -> index2:int -> start3:int option -> finish3:int option -> index4:int -> source: 'T array -> unit
/// Sets a 1D slice of a 4D array
///
@@ -5334,7 +5334,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the third dimension.
/// The fixed index of the fourth dimension.
/// The source array.
- val inline SetArraySlice4DFixedTriple2: target:'T[,,,] -> index1:int -> start2: int option -> finish2:int option -> index3:int -> index4:int -> source: 'T[] -> unit
+ val inline SetArraySlice4DFixedTriple2: target:'T[,,,] -> index1:int -> start2: int option -> finish2:int option -> index3:int -> index4:int -> source: 'T array -> unit
/// Sets a 1D slice of a 4D array
///
@@ -5345,7 +5345,7 @@ namespace Microsoft.FSharp.Core
/// The fixed index of the third dimension.
/// The fixed index of the fourth dimension.
/// The source array.
- val inline SetArraySlice4DFixedTriple1: target:'T[,,,] -> start1:int option -> finish1:int option -> index2:int -> index3:int -> index4:int -> source: 'T[] -> unit
+ val inline SetArraySlice4DFixedTriple1: target:'T[,,,] -> start1:int option -> finish1:int option -> index2:int -> index3:int -> index4:int -> source: 'T array -> unit
/// Sets a slice of an array
///
diff --git a/src/FSharp.Core/printf.fsi b/src/FSharp.Core/printf.fsi
index a188e570183..706b96cea1c 100644
--- a/src/FSharp.Core/printf.fsi
+++ b/src/FSharp.Core/printf.fsi
@@ -30,16 +30,16 @@ type PrintfFormat<'Printer, 'State, 'Residue, 'Result> =
/// The captured expressions in an interpolated string.
/// The types of expressions for %A expression gaps in interpolated string.
/// The PrintfFormat containing the formatted result.
- new: value: string * captures: obj[] * captureTys: Type[] -> PrintfFormat<'Printer, 'State, 'Residue, 'Result>
+ new: value: string * captures: obj array * captureTys: Type array -> PrintfFormat<'Printer, 'State, 'Residue, 'Result>
/// The raw text of the format string.
member Value: string
/// The captures associated with an interpolated string.
- member Captures: obj[]
+ member Captures: obj array
/// The capture types associated with an interpolated string.
- member CaptureTypes: System.Type[]
+ member CaptureTypes: System.Type array
/// Type of a formatting expression.
///
@@ -69,7 +69,7 @@ type PrintfFormat<'Printer, 'State, 'Residue, 'Result, 'Tuple> =
///
/// The created format string.
new:
- value: string * captures: obj[] * captureTys: Type[] ->
+ value: string * captures: obj array * captureTys: Type array ->
PrintfFormat<'Printer, 'State, 'Residue, 'Result, 'Tuple>
/// Type of a formatting expression.
diff --git a/src/FSharp.Core/quotations.fsi b/src/FSharp.Core/quotations.fsi
index f3aec29009a..1ab08377e6e 100644
--- a/src/FSharp.Core/quotations.fsi
+++ b/src/FSharp.Core/quotations.fsi
@@ -1269,7 +1269,7 @@ type Expr =
///
/// The resulting expression.
static member Deserialize:
- qualifyingType: Type * spliceTypes: Type list * spliceExprs: Expr list * bytes: byte[] -> Expr
+ qualifyingType: Type * spliceTypes: Type list * spliceExprs: Expr list * bytes: byte array -> Expr
/// This function is called automatically when quotation syntax (<@ @>) and other sources of
/// quotations are used.
@@ -1282,7 +1282,7 @@ type Expr =
///
/// The resulting expression.
static member Deserialize40:
- qualifyingType: Type * referencedTypes: Type[] * spliceTypes: Type[] * spliceExprs: Expr[] * bytes: byte[] ->
+ qualifyingType: Type * referencedTypes: Type array * spliceTypes: Type array * spliceExprs: Expr array * bytes: byte array ->
Expr
/// Permits interactive environments such as F# Interactive
@@ -1293,7 +1293,7 @@ type Expr =
/// The unique name for the resources being added.
/// The serialized resource to register with the environment.
///
- static member RegisterReflectedDefinitions: assembly: Assembly * resource: string * serializedValue: byte[] -> unit
+ static member RegisterReflectedDefinitions: assembly: Assembly * resource: string * serializedValue: byte array -> unit
/// Permits interactive environments such as F# Interactive
/// to explicitly register new pickled resources that represent persisted
@@ -1305,7 +1305,7 @@ type Expr =
/// The serialized resource to register with the environment.
///
static member RegisterReflectedDefinitions:
- assembly: Assembly * resource: string * serializedValue: byte[] * referencedTypes: Type[] -> unit
+ assembly: Assembly * resource: string * serializedValue: byte array * referencedTypes: Type array -> unit
/// Fetches or creates a new variable with the given name and type from a global pool of shared variables
/// indexed by name and type. The type is given by the explicit or inferred type parameter
diff --git a/src/FSharp.Core/reflect.fsi b/src/FSharp.Core/reflect.fsi
index 5d69af7f9a3..505e95027f5 100644
--- a/src/FSharp.Core/reflect.fsi
+++ b/src/FSharp.Core/reflect.fsi
@@ -82,7 +82,7 @@ type UnionCaseInfo =
/// VariantNumber = 0;}|]|]
///
///
- member GetCustomAttributes: unit -> obj[]
+ member GetCustomAttributes: unit -> obj array
/// Returns the custom attributes associated with the case matching the given attribute type.
/// The type of attributes to return.
@@ -111,7 +111,7 @@ type UnionCaseInfo =
/// TypeId = FSI_0147+Signal;}|]|]
///
///
- member GetCustomAttributes: attributeType: Type -> obj[]
+ member GetCustomAttributes: attributeType: Type -> obj array
/// Returns the custom attributes data associated with the case.
/// An list of custom attribute data items.
@@ -176,7 +176,7 @@ type UnionCaseInfo =
/// [|("width", "Double"); ("Item2", "Double"); ("height", "Double")|]|]
///
///
- member GetFields: unit -> PropertyInfo[]
+ member GetFields: unit -> PropertyInfo array
/// The integer tag for the case.
///
@@ -243,7 +243,7 @@ type FSharpValue =
///
static member MakeRecord:
[] recordType: Type *
- values: obj[] *
+ values: obj array *
?bindingFlags: BindingFlags ->
obj
@@ -258,7 +258,7 @@ type FSharpValue =
/// The array of fields from the record.
///
///
- static member GetRecordFields: record: obj * ?bindingFlags: BindingFlags -> obj[]
+ static member GetRecordFields: record: obj * ?bindingFlags: BindingFlags -> obj array
/// Precompute a function for reading all the fields from a record. The fields are returned in the
/// same order as the fields reported by a call to Microsoft.FSharp.Reflection.Type.GetInfo for
@@ -282,7 +282,7 @@ type FSharpValue =
static member PreComputeRecordReader:
[] recordType: Type *
?bindingFlags: BindingFlags ->
- (obj -> obj[])
+ (obj -> obj array)
/// Precompute a function for constructing a record value.
///
@@ -300,7 +300,7 @@ type FSharpValue =
static member PreComputeRecordConstructor:
[] recordType: Type *
?bindingFlags: BindingFlags ->
- (obj[] -> obj)
+ (obj array -> obj)
/// Get a ConstructorInfo for a record type
///
@@ -324,7 +324,7 @@ type FSharpValue =
/// The constructed union case.
///
///
- static member MakeUnion: unionCase: UnionCaseInfo * args: obj[] * ?bindingFlags: BindingFlags -> obj
+ static member MakeUnion: unionCase: UnionCaseInfo * args: obj array * ?bindingFlags: BindingFlags -> obj
/// Identify the union case and its fields for an object
///
@@ -346,7 +346,7 @@ type FSharpValue =
value: obj *
[] unionType: Type *
?bindingFlags: BindingFlags ->
- UnionCaseInfo * obj[]
+ UnionCaseInfo * obj array
/// Assumes the given type is a union type.
/// If not, is raised during pre-computation.
@@ -387,7 +387,7 @@ type FSharpValue =
/// A function to for reading the fields of the given union case.
///
///
- static member PreComputeUnionReader: unionCase: UnionCaseInfo * ?bindingFlags: BindingFlags -> (obj -> obj[])
+ static member PreComputeUnionReader: unionCase: UnionCaseInfo * ?bindingFlags: BindingFlags -> (obj -> obj array)
/// Precompute a function for constructing a discriminated union value for a particular union case.
///
@@ -397,7 +397,7 @@ type FSharpValue =
/// A function for constructing values of the given union case.
///
///
- static member PreComputeUnionConstructor: unionCase: UnionCaseInfo * ?bindingFlags: BindingFlags -> (obj[] -> obj)
+ static member PreComputeUnionConstructor: unionCase: UnionCaseInfo * ?bindingFlags: BindingFlags -> (obj array -> obj)
/// A method that constructs objects of the given case
///
@@ -421,7 +421,7 @@ type FSharpValue =
/// The fields from the given exception.
///
///
- static member GetExceptionFields: exn: obj * ?bindingFlags: BindingFlags -> obj[]
+ static member GetExceptionFields: exn: obj * ?bindingFlags: BindingFlags -> obj array
/// Creates an instance of a tuple type
///
@@ -435,7 +435,7 @@ type FSharpValue =
/// An instance of the tuple type with the given elements.
///
///
- static member MakeTuple: tupleElements: obj[] * tupleType: Type -> obj
+ static member MakeTuple: tupleElements: obj array * tupleType: Type -> obj
/// Reads a field from a tuple value.
///
@@ -460,7 +460,7 @@ type FSharpValue =
/// An array of the fields from the given tuple.
///
///
- static member GetTupleFields: tuple: obj -> obj[]
+ static member GetTupleFields: tuple: obj -> obj array
/// Precompute a function for reading the values of a particular tuple type
///
@@ -475,7 +475,7 @@ type FSharpValue =
///
///
static member PreComputeTupleReader:
- [] tupleType: Type -> (obj -> obj[])
+ [] tupleType: Type -> (obj -> obj array)
/// Gets information that indicates how to read a field of a tuple
///
@@ -502,7 +502,7 @@ type FSharpValue =
///
///
static member PreComputeTupleConstructor:
- [] tupleType: Type -> (obj[] -> obj)
+ [] tupleType: Type -> (obj array -> obj)
/// Gets a method that constructs objects of the given tuple type.
/// For small tuples, no additional type will be returned.
@@ -554,7 +554,7 @@ type FSharpType =
static member GetRecordFields:
[] recordType: Type *
?bindingFlags: BindingFlags ->
- PropertyInfo[]
+ PropertyInfo array
/// Gets the cases of a union type.
///
@@ -570,7 +570,7 @@ type FSharpType =
///
static member GetUnionCases:
[] unionType: Type * ?bindingFlags: BindingFlags ->
- UnionCaseInfo[]
+ UnionCaseInfo array
/// Return true if the typ is a representation of an F# record type
///
@@ -611,7 +611,7 @@ type FSharpType =
static member GetExceptionFields:
[] exceptionType: Type *
?bindingFlags: BindingFlags ->
- PropertyInfo[]
+ PropertyInfo array
/// Returns true if the typ is a representation of an F# exception declaration
///
@@ -646,7 +646,7 @@ type FSharpType =
/// The type representing the tuple containing the input elements.
///
///
- static member MakeTupleType: types: Type[] -> Type
+ static member MakeTupleType: types: Type array -> Type
/// Returns a representing an F# tuple type with the given element types
///
@@ -656,7 +656,7 @@ type FSharpType =
/// The type representing the tuple containing the input elements.
///
///
- static member MakeTupleType: asm: Assembly * types: Type[] -> Type
+ static member MakeTupleType: asm: Assembly * types: Type array -> Type
/// Returns a representing an F# struct tuple type with the given element types
///
@@ -666,7 +666,7 @@ type FSharpType =
/// The type representing the struct tuple containing the input elements.
///
///
- static member MakeStructTupleType: asm: Assembly * types: Type[] -> Type
+ static member MakeStructTupleType: asm: Assembly * types: Type array -> Type
/// Returns a representing an F# struct tuple type with the given element types
///
@@ -675,7 +675,7 @@ type FSharpType =
/// The type representing the struct tuple containing the input elements.
///
///
- static member MakeStructTupleType: types: Type[] -> Type
+ static member MakeStructTupleType: types: Type array -> Type
/// Return true if the typ is a representation of an F# tuple type
///
@@ -712,7 +712,7 @@ type FSharpType =
///
///
static member GetTupleElements:
- [] tupleType: Type -> Type[]
+ [] tupleType: Type -> Type array
/// Gets the domain and range types from an F# function type or from the runtime type of a closure implementing an F# type
///
@@ -744,7 +744,7 @@ module FSharpReflectionExtensions =
///
static member MakeRecord:
[] recordType: Type *
- values: obj[] *
+ values: obj array *
?allowAccessToPrivateRepresentation: bool ->
obj
@@ -763,7 +763,7 @@ module FSharpReflectionExtensions =
static member GetRecordFields:
[] record: obj *
?allowAccessToPrivateRepresentation: bool ->
- obj[]
+ obj array
/// Precompute a function for reading all the fields from a record. The fields are returned in the
/// same order as the fields reported by a call to Microsoft.FSharp.Reflection.Type.GetInfo for
@@ -787,7 +787,7 @@ module FSharpReflectionExtensions =
static member PreComputeRecordReader:
[