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

List.truncate example output is wrong #330

Open
loop-evgeny opened this issue Jun 13, 2019 · 0 comments
Open

List.truncate example output is wrong #330

loop-evgeny opened this issue Jun 13, 2019 · 0 comments

Comments

@loop-evgeny
Copy link

https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/list.truncate%5B%27t%5D-function-%5Bfsharp%5D?f=255&MSPPError=-2147217396

says the output of the sample code is

[1; 4; 9; 16; 25]
[1; 4; 9; 16; 25; 36; 49; 64; 81; 100]
[1; 4; 9; 16; 25]

But the actual output is:

1 4 9 16 25
1 4 9 16 25
1 4 9 16 25 36 49 64 81 100

Also the description "Returns a list that with at most N elements." could be clarified, e.g. "Returns a new list that contains at most N elements from the start of the input list."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant