Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Update collections.list-module-[fsharp].md #325

Open
wants to merge 1 commit into
base: live
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/conceptual/collections.list-module-[fsharp].md
Original file line number Diff line number Diff line change
Expand Up @@ -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)<br />**: ('T -&gt; 'U option) -&gt; 'T list -&gt; '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)<br />**: ('T -&gt; 'T -&gt; 'T) -&gt; 'T list -&gt; '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)<br />**: ('T -&gt; 'T -&gt; 'T) -&gt; 'T list -&gt; '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)<br />**: (int -&gt; 'T -&gt; 'T list)**|Creates a list by calling the given generator on each index.|
|[replicate](https://msdn.microsoft.com/library/93647552-6e6f-41d4-8bb4-64c975ff94d1)<br />**: (int -&gt; 'T -&gt; '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)<br />**: 'T list -&gt; 'T list**|Returns a new list with the elements in reverse order.|
|[scan](https://msdn.microsoft.com/library/21f636db-885c-4a72-970e-e3841f33a1b8)<br />**: ('State -&gt; 'T -&gt; 'State) -&gt; 'State -&gt; 'T list -&gt; '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)<br />**: ('T -&gt; 'State -&gt; 'State) -&gt; 'T list -&gt; 'State -&gt; 'State list**|Like [foldBack](https://msdn.microsoft.com/library/b9a58e66-efe1-445f-a90c-ac9ffb9d40c7), but returns both the intermediate and final results|
Expand Down