maybe a curry example exists somewhere?
# announcements
j
maybe a curry example exists somewhere?
k
I don't think there's anything like that in the standard library.
j
Copy code
tailrec fun deepArray(it: Any?): Any? =
        if (it is Array<*>) it.map(::deepArray).toTypedArray()
        else if (it is Iterable<*>) deepArray(it.map { it }.toTypedArray())
        else it