https://kotlinlang.org logo
#getting-started
Title
# getting-started
n

nkiesel

02/07/2017, 7:49 PM
Too bad. So the only way to write my "pretty" function is something like
Copy code
fun pretty(a: Any): String {
	when (a) {
		is IntArray -> return a.joinToString()
        is DoubleArry -> return a.joinToString()
        is Iterable<*> -> return a.joinToString()
		else -> return a.toString()
	}
}