main.net.jqwik.kotlin.api.BuildersExtensions.kt Maven / Gradle / Ivy
package net.jqwik.kotlin.api
import net.jqwik.api.Arbitrary
import net.jqwik.api.Builders.BuilderCombinator
import org.apiguardian.api.API
import java.util.function.BiFunction
/**
* Convenience function for Kotlin to not use backticked `in` function.
*/
@API(status = API.Status.EXPERIMENTAL, since = "1.6.0")
fun BuilderCombinator.use(arbitrary: Arbitrary, combinator: (B, T) -> B): BuilderCombinator
where B : Any {
return this.use(arbitrary).`in`(combinator)
}