spebbe / dartz

Functional programming in Dart
MIT License
756 stars 59 forks source link

No rightMap on Either? #56

Closed reilem closed 4 years ago

reilem commented 4 years ago

Currently Either has a leftMap but no rightMap. Is there any reason for this that I am not seeing?

It's a one line fix and I would gladly open a PR for it. 😄

spebbe commented 4 years ago

Hi @reilem!

Either is right biased, so the existing map method should do what you want, unless I misunderstood what you want :-)

reilem commented 4 years ago

You are indeed right, I didn't see the map function (or didn't fully understand what it did at first). Thanks!