You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could use coercions in combination with a possibly overloaded MyNumberType.Compare protocol to have a comparison function that works regardless of whether you put integers, floats, decimals, rationals, etc. in your collection (which you then might call Enum.sort(my_collection, Numbers) on).
The text was updated successfully, but these errors were encountered:
It would be nice if we could use coercions in combination with a possibly overloaded
MyNumberType.Compare
protocol to have a comparison function that works regardless of whether you put integers, floats, decimals, rationals, etc. in your collection (which you then might callEnum.sort(my_collection, Numbers)
on).The text was updated successfully, but these errors were encountered: