1 min readJan 9, 2018
Great that you like it!
When trying out the code, you had to copy the Compare
interface. Can you check if there is in
keyword in the declaration? Something like this
interface Compare<in T> {
fun compare(first: T, second: T): Int
}
Cheers,
Tomek