Satyam Agarwal
05/07/2020, 4:22 PMfun <A> Validated<NonEmptyList<YourType>, A>.toIO(): IO<A> {
return when (this) {
is Valid -> this.a.just()
is Invalid -> YourErrorType(this.e).raiseError()
}
}
antonicg
05/08/2020, 6:50 AMtoEither()
and then toIO()
, but I was asking because, shouldn’t it be one? I am in to contribute if people think that makes sense for the librarypakoito
05/08/2020, 12:03 PM