Skip to content

Efficient CodePoint indexing function? #155

@chtenb

Description

@chtenb

Should this library expose a function which allows constant-time codepoint indexing in string?
This would only work in situations where you have the codeunit index of the codepoint handy, so the signature would look like

codePointAtIndexUnit :: Int -> String -> Maybe (Tuple CodePoint Int)

See also purescript-contrib/purescript-string-parsers#77

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