arrow-kt / arrow-core

Λrrow Core is part of Λrrow, a functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
81 stars 30 forks source link

Adding Iter interface #280

Closed franciscodr closed 3 years ago

franciscodr commented 3 years ago

This pull request adds a new interface called Iter that will allow the data types to implement the foldMap method for Traversal in Arrow Optics easily once the Kind type is removed.

It also provide an implementation of the interface for Either, Option and Validated

raulraja commented 3 years ago

Closed since after further discussion Traverse is gonna loose the foldMap related methods which will get moved to Each, constructed with both a fold and map