Skip to content

Commit a458989

Browse files
committed
Merge pull request #903 from enricosada/xmldoc_seqrev
add xmldoc about Seq.rev consume input sequence
2 parents 1bbc360 + 8ced26a commit a458989

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/fsharp/FSharp.Core/seq.fsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ namespace Microsoft.FSharp.Collections
253253
/// <returns>The sequence split into chunks.</returns>
254254
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
255255
/// <exception cref="System.ArgumentException">Thrown when <c>count</c> is not positive.</exception>
256+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
256257
[<CompiledName("SplitInto")>]
257258
val splitInto: count:int -> source:seq<'T> -> seq<'T[]>
258259

@@ -371,6 +372,7 @@ namespace Microsoft.FSharp.Collections
371372
/// <exception cref="System.Collections.Generic.KeyNotFoundException">Thrown if no element returns true when
372373
/// evaluated by the predicate</exception>
373374
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null</exception>
375+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
374376
[<CompiledName("FindBack")>]
375377
val findBack: predicate:('T -> bool) -> source:seq<'T> -> 'T
376378

@@ -396,6 +398,7 @@ namespace Microsoft.FSharp.Collections
396398
/// <exception cref="System.Collections.Generic.KeyNotFoundException">Thrown if no element returns true when
397399
/// evaluated by the predicate</exception>
398400
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null</exception>
401+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
399402
[<CompiledName("FindIndexBack")>]
400403
val findIndexBack: predicate:('T -> bool) -> source:seq<'T> -> int
401404

@@ -435,6 +438,7 @@ namespace Microsoft.FSharp.Collections
435438
/// <param name="state">The initial state.</param>
436439
/// <returns>The state object after the folding function is applied to each element of the sequence.</returns>
437440
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
441+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
438442
[<CompiledName("FoldBack")>]
439443
val foldBack<'T,'State> : folder:('T -> 'State -> 'State) -> source:seq<'T> -> state:'State -> 'State
440444

@@ -699,6 +703,7 @@ namespace Microsoft.FSharp.Collections
699703
/// <param name="array">The input collection.</param>
700704
/// <exception cref="System.ArgumentNullException">Thrown when the input collection is null.</exception>
701705
/// <returns>The collection of transformed elements, and the final accumulated value.</returns>
706+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
702707
[<CompiledName("MapFold")>]
703708
val mapFold<'T,'State,'Result> : mapping:('State -> 'T -> 'Result * 'State) -> state:'State -> source:seq<'T> -> seq<'Result> * 'State
704709

@@ -711,6 +716,7 @@ namespace Microsoft.FSharp.Collections
711716
/// <param name="state">The initial state.</param>
712717
/// <exception cref="System.ArgumentNullException">Thrown when the input collection is null.</exception>
713718
/// <returns>The collection of transformed elements, and the final accumulated value.</returns>
719+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
714720
[<CompiledName("MapFoldBack")>]
715721
val mapFoldBack<'T,'State,'Result> : mapping:('T -> 'State -> 'Result * 'State) -> source:seq<'T> -> state:'State -> seq<'Result> * 'State
716722

@@ -888,6 +894,7 @@ namespace Microsoft.FSharp.Collections
888894
///
889895
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
890896
/// <exception cref="System.ArgumentException">Thrown when indexMap does not produce a valid permutation.</exception>
897+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
891898
[<CompiledName("Permute")>]
892899
val permute: indexMap:(int -> int) -> source:seq<'T> -> seq<'T>
893900

@@ -950,13 +957,15 @@ namespace Microsoft.FSharp.Collections
950957
/// <returns>The final result of the reductions.</returns>
951958
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
952959
/// <exception cref="System.ArgumentException">Thrown when the input sequence is empty.</exception>
960+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
953961
[<CompiledName("ReduceBack")>]
954962
val reduceBack: reduction:('T -> 'T -> 'T) -> source:seq<'T> -> 'T
955963

956964
/// <summary>Returns a new sequence with the elements in reverse order.</summary>
957965
/// <param name="source">The input sequence.</param>
958966
/// <returns>The reversed sequence.</returns>
959967
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
968+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the reversed sequence.</remarks>
960969
[<CompiledName("Reverse")>]
961970
val rev: source:seq<'T> -> seq<'T>
962971

@@ -981,6 +990,7 @@ namespace Microsoft.FSharp.Collections
981990
/// <param name="state">The initial state.</param>
982991
/// <returns>The resulting sequence of computed states.</returns>
983992
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
993+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
984994
[<CompiledName("ScanBack")>]
985995
val scanBack<'T,'State> : folder:('T -> 'State -> 'State) -> source:seq<'T> -> state:'State -> seq<'State>
986996

@@ -1032,6 +1042,7 @@ namespace Microsoft.FSharp.Collections
10321042
/// <returns>The result sequence.</returns>
10331043
///
10341044
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
1045+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
10351046
[<CompiledName("Sort")>]
10361047
val sort : source:seq<'T> -> seq<'T> when 'T : comparison
10371048

@@ -1045,6 +1056,7 @@ namespace Microsoft.FSharp.Collections
10451056
/// <param name="comparer">The function to compare the collection elements.</param>
10461057
/// <param name="list">The input sequence.</param>
10471058
/// <returns>The result sequence.</returns>
1059+
/// <remarks>This function consumes the whole input sequence before yielding the first element of the result sequence.</remarks>
10481060
[<CompiledName("SortWith")>]
10491061
val sortWith : comparer:('T -> 'T -> int) -> source:seq<'T> -> seq<'T>
10501062

@@ -1208,6 +1220,7 @@ namespace Microsoft.FSharp.Collections
12081220
/// <param name="source">The input sequence.</param>
12091221
/// <returns>The found element or <c>None</c>.</returns>
12101222
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
1223+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
12111224
[<CompiledName("TryFindBack")>]
12121225
val tryFindBack: predicate:('T -> bool) -> source:seq<'T> -> 'T option
12131226

@@ -1240,6 +1253,7 @@ namespace Microsoft.FSharp.Collections
12401253
/// <param name="source">The input sequence.</param>
12411254
/// <returns>The found index or <c>None</c>.</returns>
12421255
/// <exception cref="System.ArgumentNullException">Thrown when the input sequence is null.</exception>
1256+
/// <remarks>This function consumes the whole input sequence before returning the result.</remarks>
12431257
[<CompiledName("TryFindIndexBack")>]
12441258
val tryFindIndexBack : predicate:('T -> bool) -> source:seq<'T> -> int option
12451259

0 commit comments

Comments
 (0)