SecretX
02/18/2022, 11:14 PMfun test() = either<String, SomeObject> {
val someString = ""
// how can I return 'someString' as the left value of this either?
}
Wesley Hartford
02/18/2022, 11:37 PMsomeString.left().bind()
, not sure if there is a better way.alightgoesout
02/21/2022, 10:27 AMsuspend fun ensure(value: Boolean, orLeft: () -> E)
in EitherEffect