doc / ch.tutteli.atrium.domain.builders.utils / toVarArg

toVarArg

inline fun <reified T> toVarArg(iterable: Iterable<T>): Pair<T, Array<out T>> (source)

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

Exceptions

IllegalArgumentException - in case the iterable is empty.