ktor-arrow-example icon indicating copy to clipboard operation
ktor-arrow-example copied to clipboard

Update Validated to Either Arrow 2.0 syntax

Open nomisRev opened this issue 2 years ago • 2 comments
trafficstars

In Arrow 1.2.0 Validated was deprecated in favor of Either. To replace Validated Arrow now exposes zipOrAccumulate and mapOrAccumulate functions to accumulate Either.Left or Raise<E> errors that have occured when combining different Raise functions or Either values and when transforming an Iterable using Raise functions or Either values.

In this ticket we should remove all usages of Validated, and replace them with Either, and replace all usages of zip with zipOrAccumulate and traverse with mapOrAccumulate.

Please assign yourself to this ticket before starting, and if you run into any issues please raise a PR so I can provide help and support directly in the code.

Thank you in advance for your interest in the project! Happy hacktoberfest!

nomisRev avatar Sep 25 '23 11:09 nomisRev

I'd like to take on this.

Alfhir avatar Sep 26 '23 17:09 Alfhir

Awesome! Don’t forget you should wait until October if you want it to count towards Hacktoberfest 😉

nomisRev avatar Sep 26 '23 18:09 nomisRev