michaelbull / kotlin-result

A multiplatform Result monad for modelling success or failure operations.
ISC License
1.02k stars 57 forks source link

add zipOrAccumulate #90

Closed YuitoSato closed 9 months ago

YuitoSato commented 1 year ago

solves https://github.com/michaelbull/kotlin-result/issues/89.

I've implemented the zipOrAccumulate method, taking reference from Arrow.kt's zipOrAccumulate. The overall approach is as we discussed in the issue. If this doesn't align with the library's direction, feel free to reject it.