what is the Kotlin equivalent of this Scala code? ...
# functional
h
what is the Kotlin equivalent of this Scala code?
Copy code
def tests(start: Int, end: Int): Array[Int] = {
    (start until end).toArray
}
i tried something like this but it doesn't like it
Copy code
fun tests(start: Int, end: Int): IntArray{
    return arrayOf(start until end)
}