inline fun <reified T> toVarArg(iterable: Iterable<T>): Pair<T, Array<out T>>
Transforms the given iterable to Pair<T, Array<out T>> with the intend that it can be easily used for a function requiring T, vararg T
Pair<T, Array<out T>>
T, vararg T
IllegalArgumentException - in case the iterable is empty.
IllegalArgumentException