combine

@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, combinator: (T1, T2) -> R): Arbitrary<R>

Combine 2 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, combinator: (T1, T2, T3) -> R): Arbitrary<R>

Combine 3 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, T4, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, a4: Arbitrary<T4>, combinator: (T1, T2, T3, T4) -> R): Arbitrary<R>

Combine 4 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, T4, T5, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, a4: Arbitrary<T4>, a5: Arbitrary<T5>, combinator: (T1, T2, T3, T4, T5) -> R): Arbitrary<R>

Combine 5 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, T4, T5, T6, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, a4: Arbitrary<T4>, a5: Arbitrary<T5>, a6: Arbitrary<T6>, combinator: (T1, T2, T3, T4, T5, T6) -> R): Arbitrary<R>

Combine 6 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, T4, T5, T6, T7, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, a4: Arbitrary<T4>, a5: Arbitrary<T5>, a6: Arbitrary<T6>, a7: Arbitrary<T7>, combinator: (T1, T2, T3, T4, T5, T6, T7) -> R): Arbitrary<R>

Combine 7 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T1, T2, T3, T4, T5, T6, T7, T8, R> combine(a1: Arbitrary<T1>, a2: Arbitrary<T2>, a3: Arbitrary<T3>, a4: Arbitrary<T4>, a5: Arbitrary<T5>, a6: Arbitrary<T6>, a7: Arbitrary<T7>, a8: Arbitrary<T8>, combinator: (T1, T2, T3, T4, T5, T6, T7, T8) -> R): Arbitrary<R>

Combine 8 arbitraries into one.

Return

new Arbitrary instance


@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun <T, R> combine(arbitraries: List<Arbitrary<T>>, combinator: (v1: List<T>) -> R): Arbitrary<R>

Combine list of arbitraries into one.

Return

new Arbitrary instance