We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f11099 commit 8f880b7Copy full SHA for 8f880b7
src/fsharp/FSharp.Core/seq.fs
@@ -686,8 +686,8 @@ namespace Microsoft.FSharp.Collections
686
seq { use e = source.GetEnumerator()
687
for x in count .. - 1 .. 1 do
688
if not (e.MoveNext()) then
689
- invalidOpFmt "{0}: tried to take {1} {2} past the end of the seq"
690
- [|SR.GetString SR.notEnoughElements; x; (if x = 1 then "element" else "elements")|]
+ invalidOpFmt "{0}: tried to take {1} {2} past the end of the seq. Use Seq.truncate to get {3} or less elements"
+ [|SR.GetString SR.notEnoughElements; x; (if x = 1 then "element" else "elements"); count|]
691
yield e.Current }
692
693
[<CompiledName("IsEmpty")>]
0 commit comments