why isnβt this library in core? π
this is so powerful!
something I would have written in JS like this:
userGroups
.map(group => ({
...group,
users: group.users
.map( user => <http://user.online|user.online> && user.profileViews && user.profileViews.count > 0
? ({...user,
profileViews: {
...user.profileViews,
count: user.profileViews.count + 1,
}})
: user
)
}));
managed to write using specter like this
(transform [ALL :users ALL #(:online %) :profile-views :count (partial < 0)] inc)
And you only scratched the surface in your example. I am doing things with it, I strongly believe are almost impossible in other langs/libs. And I still consider myself Specter newbie π
would you mind posting some examples please? Iβm struggling to find some good examples / solutions to problems
@bravilogy https://groups.google.com/forum/#!searchin/clojure/contribute$20specter%7Csort:date/clojure/qN1UPMVQmaM/uVUYENF6BwAJ