combine
fun <A1, A2, R> SemiOrderedArgsGenerator<A1>.combine(other: ArgsGenerator<A2>, transform: (A1, A2) -> R): SemiOrderedArgsGenerator<R>(source)
Combines this SemiOrderedArgsGenerator with the given other ArgsGenerator and transforms the generated values pairwise, returning a SemiOrderedArgsGenerator which generates values of type R.
It is not statically known what SemiOrderedArgsGenerator.size the resulting SemiOrderedArgsGenerator will have.
How the other ArgsGenerator is combined depends on its type:
a SemiOrderedArgsGenerator is combined using cartesian
an ArbArgsGenerator is combined using zip
Return
The resulting SemiOrderedArgsGenerator which generates values of type R.
Since
2.0.0
Throws
in case the other ArgsGenerator is neither a SemiOrderedArgsGenerator nor an ArbArgsGenerator.