specter

Latest version: 1.1.3
Bravi 2018-06-29T18:33:53.000336Z

why isn’t this library in core? πŸ˜„

Bravi 2018-06-29T18:34:00.000126Z

this is so powerful!

Bravi 2018-06-29T18:35:43.000304Z

something I would have written in JS like this:

userGroups
  .map(group => ({
    ...group,
    users: group.users
      .map( user =&gt; <http://user.online|user.online> &amp;&amp; user.profileViews &amp;&amp; user.profileViews.count &gt; 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 &lt; 0)] inc)

pepe 2018-07-03T14:42:20.000133Z

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 πŸ™‚

Bravi 2018-07-04T14:25:18.000327Z

would you mind posting some examples please? I’m struggling to find some good examples / solutions to problems