Dmitri Zaitsev
Dmitri Zaitsev
It is called `CFold`! http://stackoverflow.com/a/8249298/1614973 So Sets and Objects are `CFoldable`!
>Nonetheless, I really like the idea of adding a CFold implementation alongside our current `reduce`. Obviously it would be up to the user to enforce commutativity in their fold functions,...
@ivenmarquardt You can `CFold` it 😄
@ivenmarquardt > I didn't mean that you cannot fold an Object. I meant that it would be an improper use of the type, at least in my opinion. You may...
@CrossEye >Nonetheless, I really like the idea of adding a CFold implementation alongside our current reduce. Obviously it would be up to the user to enforce commutativity in their fold...
@CrossEye > I'm all for a PR on this. Are you interested in creating one? I've thought @Bradcomp had already proposed an implementation?
@Bradcomp I think you pointed out correctly that you basically need to pass the object into some user-provided `toArray` function and then compose with the regular `reduce`. There seem to...
@polytypic > An isomorphism is also provided between objects and arrays of key-value pairs and you can further compose that with other isomorphisms and traversals. How is it defined? Does...
That makes sense, thank you for the explanation. Should it be in the doc perhaps?
I think you can implement the Set Functor for any abstract equality relation, which basically means to extend the native JS equality used in `JS Set`, where the first example...