Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Order trait #14

Open
BigBadE opened this issue Oct 25, 2023 · 0 comments
Open

[FEATURE] Order trait #14

BigBadE opened this issue Oct 25, 2023 · 0 comments

Comments

@BigBadE
Copy link
Owner

BigBadE commented Oct 25, 2023

Describe Your Feature
An order trait that returns the relative order of two things.

Provide a Code Snippet Using Your Feature

fn test() {
    # 1 means greater than, 0 means equal, -1 means greater than.
    return 1.order(0) == 1;
}

**Additional Information**
Order should be implemented like the Equals trait.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Easy
Status: Easy
Status: Easy
Development

No branches or pull requests

1 participant