fun <T> AssertionContainer<*>.iterableLikeToIterable(iterableLike: IterableLike): Iterable<T>
Transforms the given iterableLike to an Iterable with an element type T.
Note that an unsafe cast applies, i.e. you need to know that the element type of the given iterableLike is
actually T. Use .map { it as T }
afterwards if you don't know what you are doing.
IllegalArgumentException
- in case the iterableLike is empty (has not next element).
Returns
the resulting Iterable.
Since
0.14.0