arrow-kt / arrow-kt/arrow

`Ior.handleErrorWith()` f parameter lacks a Right value

Open
#3,658 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
6.6k
Forks
472
Avg merge
3d 49m
Merged PRs (30d)
4

Description

`f` cannot generate `Ior.Right` or `Ior.Both` since it is only passed a leftValue
Needs to be ` f: (A, B) -> Ior`

https://github.com/arrow-kt/arrow/blob/8c27809a20c7e8433faf0e844c9c38d00aff9a85/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Ior.kt#L428-L436

Contributor guide

Open the contributing guide

Research direction

Start in arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Ior.kt at lines 428-436 and inspect Ior.handleErrorWith() and its f parameter. Verify how the parameter type limits the returned Ior variants, then update the API so the right value is available and confirm the surrounding behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.