kotest-assertions-arrow / io.kotest.assertions.arrow / arrow.typeclasses.ApplicativeError / choose

choose

fun <F, E, A> ApplicativeError<F, E>.choose(fe: () -> E, fa: () -> A): Kind<F, A>

Polymorphic chooser that distributes generation of arbitrary higher kinded values where F provides extensions for the ApplicativeError interface. The chooser dispatches returns an error or value in the context of F