From 5ecf8a2dd385248a5def985174b2a62395a6274b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20B=C3=A6verfjord?= Date: Tue, 12 Mar 2019 22:20:21 +0100 Subject: [PATCH] Update collections.list-module-[fsharp].md List.replicate had the description from List.init... --- docs/conceptual/collections.list-module-[fsharp].md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conceptual/collections.list-module-[fsharp].md b/docs/conceptual/collections.list-module-[fsharp].md index 6d67b2ab..6ba47ba0 100644 --- a/docs/conceptual/collections.list-module-[fsharp].md +++ b/docs/conceptual/collections.list-module-[fsharp].md @@ -86,7 +86,7 @@ For an overview of lists in F#, see [Lists (F#)](Lists-%5BFSharp%5D. |[pick](https://msdn.microsoft.com/library/0430b515-7fe4-49a1-a616-d2286d8b08b2)
**: ('T -> 'U option) -> 'T list -> 'U**|Applies the given function to successive elements, returning the first result where function returns **Some** for some value.| |[reduce](https://msdn.microsoft.com/library/048e1f95-691b-49cb-bb99-fb85f68f3d8b)
**: ('T -> 'T -> 'T) -> 'T list -> 'T**|Applies a function to each element of the collection, threading an accumulator argument through the computation. This function applies the specified function to the first two elements of the list. It then passes this result into the function along with the third element, and so on. Finally, it returns the final result. If the input function is **f** and the elements are **i0...iN**, then this function computes **f (... (f i0 i1) i2 ...) iN**.| |[reduceBack](https://msdn.microsoft.com/library/52d747d2-dd6f-4ed8-923d-0a6915fea11f)
**: ('T -> 'T -> 'T) -> 'T list -> 'T**|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 this function computes **f i0 (...(f iN-1 iN))**.| -|[replicate](https://msdn.microsoft.com/library/93647552-6e6f-41d4-8bb4-64c975ff94d1)
**: (int -> 'T -> 'T list)**|Creates a list by calling the given generator on each index.| +|[replicate](https://msdn.microsoft.com/library/93647552-6e6f-41d4-8bb4-64c975ff94d1)
**: (int -> 'T -> 'T list)**|Creates a list of a specified length with every element set to the given value.| |[rev](https://msdn.microsoft.com/library/69d09a83-3cc3-4ddf-9535-61f9f0a087e6)
**: 'T list -> 'T list**|Returns a new list with the elements in reverse order.| |[scan](https://msdn.microsoft.com/library/21f636db-885c-4a72-970e-e3841f33a1b8)
**: ('State -> 'T -> 'State) -> 'State -> 'T list -> 'State list**|Applies a function to each element of the collection, threading an accumulator argument through the computation. This function takes the second argument, and applies the specified function to it and the first element of the list. Then, it passes this result into the function along with the second element and so on. Finally, it returns the list of intermediate results and the final result.| |[scanBack](https://msdn.microsoft.com/library/6c131a36-d152-46d4-80c6-d3ee3ac80925)
**: ('T -> 'State -> 'State) -> 'T list -> 'State -> 'State list**|Like [foldBack](https://msdn.microsoft.com/library/b9a58e66-efe1-445f-a90c-ac9ffb9d40c7), but returns both the intermediate and final results|