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

AoC: property.orderable should provide implementation of type.equality #4551

Open
fridis opened this issue Dec 24, 2024 · 0 comments
Open

AoC: property.orderable should provide implementation of type.equality #4551

fridis opened this issue Dec 24, 2024 · 0 comments
Labels
base library related to the Fuzion base library enhancement New feature or request

Comments

@fridis
Copy link
Member

fridis commented Dec 24, 2024

Found this during soling 23 Dec Advent-of-Code: Since a total order implies an equality relation, property.orderable should implement type.equality as follows

  redef property.orderable.type.equality(a,b property.orderable.this) 
    post
      result = (b <= a <= b)
  =>
    a <= b <= a
@fridis fridis added enhancement New feature or request base library related to the Fuzion base library labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base library related to the Fuzion base library enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant