Get Mystery Box with random crypto!

Mojo struct MyPair: var first: Int var second: Int | Abhijith N T

Mojo

struct MyPair:
var first: Int
var second: Int

# We use 'fn' instead of 'def' here - we'll explain that soon
fn __init__(inout self, first: Int, second: Int):
self.first = first
self.second = second

fn __lt__(self, rhs: MyPair) -> Bool:
return self.first < rhs.first or
(self.first == rhs.first and
self.second < rhs.second)