Skip to content

Feature Parity #2

Description

@smiggleworth

Features
midpoint(a, b) - Return lexicographic midpoint between a and b, enforcing a < pos < b
validate(pos) - Ensure position string is lowercase a–z and ≤ max length
needsRebalance(a, b) - True if midpoint would exceed length or conflict
rebalance3(a, b, c) - Return 3 evenly spaced values between "a" and "z"
compare(a, b) - Lexicographic sort logic (safe in all langs)

Each language should support the above features. Could you make sure each language does this? If a method has not been implemented, it should be stubbed out and an issue created in GitHub.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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