Skip to content

Lexicographic ordering #10

@danvk

Description

@danvk

You can compare ordinary arrays lexicographically using memcmp, which is often highly-optimized for whatever system you're on. Depending on exactly how you bitpack the arrays, memcmp may or may not work. It would helpful if the docs mentioned whether memcmp worked with PackedArray. Ideally it would, and maybe the arrays could implement operator<=> or a compare method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions