mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-17 00:03:36 -04:00
Use auto sort to break ties when sorting
This commit is contained in:
@@ -29,3 +29,19 @@ def register_mime_types
|
||||
MIME.register k, v
|
||||
end
|
||||
end
|
||||
|
||||
struct Int
|
||||
def or(other : Int)
|
||||
if self == 0
|
||||
other
|
||||
else
|
||||
self
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
struct Nil
|
||||
def or(other : Int)
|
||||
other
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user