flatZipDependent

Creates for each generated value of type A1 by this ArbArgsGenerator another ArbArgsGenerator with the help of the given otherFactory, generates the given amount of values, and zips them together with the value of this ArbArgsGenerator.

Return

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

Since

2.0.0

Parameters

otherFactory

Builds another ArbArgsGenerator based on a given value of type A1.

A1

The type of values generated by this ArbArgsGenerator.

A2

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


fun <A1, A2, R> ArbArgsGenerator<A1>.flatZipDependent(amount: Int, otherFactory: ArbExtensionPoint.(A1) -> ArbArgsGenerator<A2>, transform: (A1, A2) -> R): ArbArgsGenerator<R>(source)

Creates for each generated value of type A1 by this ArbArgsGenerator another ArbArgsGenerator with the help of the given otherFactory, generates the given amount of values, and transforms them together with the value of this ArbArgsGenerator to type R.

Return

The resulting ArbArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

amount

How many values of the generated ArbArgsGenerator shall be zipped.

otherFactory

Builds another ArbArgsGenerator 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 ArbArgsGenerator.

A2

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

R

the type of values generated by the resulting ArbArgsGenerator.


Creates for each generated value of type A1 by this SemiOrderedArgsGenerator an ArbArgsGenerator with the help of the given otherFactory, generates the given amount of values, and zips them together with the value of this ArbArgsGenerator to type Tuple2<A1, A2>.

The resulting SemiOrderedArgsGenerator generates this.size * amount values before repeating.

Return

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

Since

2.0.0

Parameters

amount

How many values of the generated ArbArgsGenerator shall be zipped.

otherFactory

Builds another ArbArgsGenerator based on a given value of type A1.

A1

The type of values generated by this ArbArgsGenerator.

A2

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


Creates for each generated value of type A1 by this SemiOrderedArgsGenerator an ArbArgsGenerator with the help of the given otherFactory, generates the given amount of values, and transforms them together with the value of this ArbArgsGenerator to type R.

The resulting SemiOrderedArgsGenerator generates this.size * amount values before repeating.

Return

The resulting ArbArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

amount

How many values of the generated ArbArgsGenerator shall be zipped.

otherFactory

Builds another ArbArgsGenerator 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 ArbArgsGenerator.

A2

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

R

the type of values generated by the resulting ArbArgsGenerator.