transform

Transforms the Sequence will generate into a Sequence of type R and thus creating a ArbArgsGenerator of type R.

Note that the resulting sequence must still be an infinite stream of values.

Use the overload which provides the seedOffset in case you use ArbArgsGenerator.generate in side the transform function, this way you can pass on the seedOffset to ArbArgsGenerator.generate.

Return

The resulting ArbArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

transform

The transformation function which takes a Sequence of type T and produces a Sequence of type R.

T

The type of values generated by this ArbArgsGenerator.

R

the type of values generated by the resulting ArbArgsGenerator.


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

Transforms the Sequence will generate into a Sequence of type R and thus creating a ArbArgsGenerator of type R.

Note that the resulting sequence must still be an infinite stream of values.

Return

The resulting ArbArgsGenerator which generates values of type R.

Since

2.0.0

Parameters

transform

The transformation function which takes a Sequence of type T and produces a Sequence of type R.

T

The type of values generated by this ArbArgsGenerator.

R

the type of values generated by the resulting ArbArgsGenerator.