fun greater(a: T, b: T): T { if (a > b) return a; return b; } fun lesser(a: T, b: T): T { if (a > b) return b; return a; }