Skip to content

Conversation

nwolverson
Copy link
Contributor

This is a documentation-only change to reconcile the documentation of Data.String.CodePoints.take with the behaviour. The behaviour of take is to return the first N characters of the string, or the entire input string if the length is less than N. The falllback and direct implementations appear to agree on this. The tests verify this behaviour (str length is 7):

  assertEqual
    { actual: SCP.take 8 str
    , expected: str
    }

@garyb garyb merged commit b6654d4 into purescript:master Dec 26, 2024
1 check passed
@nwolverson nwolverson deleted the patch-1 branch February 4, 2025 14: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.

2 participants