var count = 0
btn_vararg_generic.setOnClickListener{
tv_function_result.text = when(count % 3){
0 -> appendString<String> ("00","001","002","003","004")
1 -> appendString<Int> ("prime numbers less than 10", 2,3,5,7)
else -> appendString<Double> ("lalal", 5.20, 6.18, 11.11, 12.12)
}
count ++
}
fun <T> Array<T>.swap(pos1: Int, pos2: Int){
val tmp = this[pos1]
this[pos1] = this[pos2]
this[pos2] = tmp
}