chunked
Instead of emitting the generated values directly, it takes chunks of size, puts them into a List and returns it.
Return
The chunked values as list.
Since
2.0.0
Parameters
size
the size of the resulting Lists.
T
The type of values generated by this ArbArgsGenerator.
fun <T, R> ArbArgsGenerator<T>.chunked(size: Int, transform: (List<T>) -> R): ArbArgsGenerator<R>(source)
Instead of emitting the generated values directly, it takes chunks of size, puts them into a List and lets it transform into R.
Return
The resulting ArbArgsGenerator which generates values of type R.
Since
2.0.0
Parameters
size
the size of the resulting Lists.
T
The type of values generated by this ArbArgsGenerator.
R
the type of values generated by the resulting ArbArgsGenerator.