Kotlin programming language
What? Why?
fun quickSort(collection: CollectionOfInts) { ... }
quickSort(listOf(1, 2, 3))
quickSort(listOf(1.0, 2.0, 3.0))
fun quickSort(collection: CollectionOfDoubles) { ... }
quickSort(listOf(1.0, 2.0, 3.0))
quickSort(listOf(1, 2, 3))
Kotlin Number inheritors: Int, Double, Byte, Float, Long, Short
Do we need 4 more implementations of quickSort?