Skip to content

Fix doc example for List.Extra.takeRight#98

Merged
miniBill merged 1 commit intoelmcraft:masterfrom
Janiczek:patch-1
Mar 17, 2026
Merged

Fix doc example for List.Extra.takeRight#98
miniBill merged 1 commit intoelmcraft:masterfrom
Janiczek:patch-1

Conversation

@Janiczek
Copy link
Copy Markdown
Contributor

Apologies, this fell through the cracks when making #90.

@miniBill miniBill merged commit 7b7dcc2 into elmcraft:master Mar 17, 2026
2 checks passed
{-| Take the last _n_ members of a list.

take 2 [ 1, 2, 3, 4, 5 ] == [ 1, 2 ]
takeRight 2 [ 1, 2, 3, 4, 5 ] == [ 4, 5 ]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this a doctest.

Suggested change
takeRight 2 [ 1, 2, 3, 4, 5 ] == [ 4, 5 ]
takeRight 2 [ 1, 2, 3, 4, 5 ] --> [ 4, 5 ]

@Janiczek Janiczek deleted the patch-1 branch March 21, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants