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

Extensions for arrow.typeclasses.ApplicativeError

choose

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

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