iterableLikeToIterable
fun <T> AssertionContainer<*>.iterableLikeToIterable(iterableLike: IterableLike): Iterable<T>(source)
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.
Since
0.14.0
Throws
in case the iterableLike is empty (has not next element).