You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zordid
changed the title
Conract statement is incorrect in Either.isRight(predicate: ...)
Contract statement is incorrect in Either.isRight(predicate: ...)
Feb 21, 2023
In the new
isRight(predicate: ...)
fun of typeEither
, the assumptions stated in the contract is not accurate.False does not correctly imply the element is of type
Left<A>
, because it could just be aRight<A>
with not matching predicate...arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt
Lines 864 to 871 in b3ef809
The text was updated successfully, but these errors were encountered: