inline fun <reified T> toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>
Transforms the given IterableLike 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