kutyel/optics.js

API for Traversals/Folds

serras opened this issue ยท 2 comments

Once you have a fold, yout can access everything as it was a list/array. We should think about which functions to implement there.

Maybe we can base ourselves in Ramda? (look for List in the docs)

My proposal is to provide the following two functions: reduce and toArray. Also, to keep the usual Fold name, instead of my previous Reducer proposal.

@kutyel what do you think? if you agree, I can implement these during the day.

๐ŸŽ‰ This issue has been resolved in version 1.2.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€