Good morning Romain.
Currently, there are no such plans, because we want to keep the API of Arrow slim.
simon.vergauwen
05/16/2022, 6:49 AM
For the same reasons we've not added
traverse
etc for
Effect
yet since one can simply do.
Copy code
effect {
values.map { it.bind() }
}
Keep in mind that with context receivers you'll be able to do this.
simon.vergauwen
05/16/2022, 6:50 AM
Copy code
context(EffectScope<SomeError>)
suspend fun myCode(): Int =
ensureNotNull(someEffect.bind()) { SomeError("…") }
a
alightgoesout
05/16/2022, 6:54 AM
Thanks Simon! One more reason to wait for context receivers then.
👍 1
s
simon.vergauwen
05/16/2022, 6:55 AM
My pleasure Romain! We're also always eager to receive feedback on community used operators though, so if something is popular enough then we can definitely add it into Arrow