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

List.truncate example output is wrong #330

@emz00

Description

@emz00

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions