flatZipDependentMaterialised

Generates size values, creates another OrderedArgsGenerator per value with the help of the given otherFactory, materialises this other generator as well and combines its values with the corresponding value of this generator into a Tuple2.

Return

The resulting OrderedArgsGenerator which generates values of type Tuple2<A1, A2>.

Since

2.0.0

Parameters

otherFactory

Builds an OrderedArgsGenerator based on a given value of type A1.

A1

The type of values generated by this OrderedArgsGenerator.

A2

The type of values generated by the given OrderedArgsGenerator (built by the given otherFactory).


Generates size values, creates another OrderedArgsGenerator per value with the help of the given otherFactory, materialises this other generator as well and combines its values with the corresponding value of this generator with the help of the given transform function to type R.

Return

The resulting OrderedArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

otherFactory

Builds an OrderedArgsGenerator based on a given value of type A1.

transform

The transformation function which takes an A1 and A2 and produces an R.

A1

The type of values generated by this OrderedArgsGenerator.

A2

The type of values generated by the given OrderedArgsGenerator (built by the given otherFactory).

R

the type of values generated by the resulting OrderedArgsGenerator.


Deprecated (with error)

" Materialising means fixing the undefined/random part of an SemiOrderedArgsGenerator. Normally you do not want to turn an SemiOrderedArgsGenerator into an OrderedArgsGenerator as you basically loose the randomness you added in the first place. If you still want to do this, then use: let { g -> g.generate().take(g.size) }.toList().let(ordered::fromList).flatZipDependentMaterialised(otherFactory, transform)

Replace with

let { g -> g.generate().take(g.size) }.toList().let(ordered::fromList).flatZipDependentMaterialised(otherFactory, transform)