mapIndexedInternal

fun <T, R> ArbArgsGenerator<T>.mapIndexedInternal(transform: (index: Int, T, seedOffset: Int) -> R): ArbArgsGenerator<R>(source)

Maps the values this ArbArgsGenerator generates together with an index and a seed offset to type R with the help of the given transform function.

!! No backward compatibility guarantees !! Reuse at your own risk

In case VariistConfig.skip is null then the index starts at 0 otherwise at VariistConfig.skip.

Return

The resulting ArbArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

transform

The transformation function which takes a T, an index and a seed offset and produces an R. The seedOffset is passed along the call chain and should be taken into account when using ArbArgsGenerator.generate inside the transform function.

T

The type of values generated by this ArbArgsGenerator.

R

the type of values generated by the resulting ArbArgsGenerator.


Maps the values this SemiOrderedArgsGenerator generates together with an index to type R with the help of the given transform function.

!! No backward compatibility guarantees !! Reuse at your own risk

In case VariistConfig.skip is null then the index starts at 0 otherwise at VariistConfig.skip and this regardless what offset is used in the end for SemiOrderedArgsGenerator.generate.

Return

The resulting SemiOrderedArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

transform

The transformation function which takes a T and produces an R.

T

The type of values generated by this SemiOrderedArgsGenerator.

R

the type of values generated by the resulting SemiOrderedArgsGenerator.