doc / ch.tutteli.atrium.logic.utils / toVarArg

toVarArg

inline fun <reified T> CharSequenceContains.CheckerStepLogic<*, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>
inline fun <reified T> CharSequenceContains.EntryPointStepLogic<*, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>
inline fun <reified T> IterableLikeContains.CheckerStepLogic<*, *, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>
inline fun <reified T> IterableLikeContains.EntryPointStepLogic<*, *, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>
inline fun <reified T> AssertionContainer<*>.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

Exceptions

IllegalArgumentException - in case the iterable is empty.

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

Exceptions

IllegalArgumentException - in case the iterable is empty.