Hi all, how can I pick only the odds values in an array?
[:a 0 :b 1 :c 2] => [0 1 2]there may be something easier, but something like that should work:
[INDEXED-VALS (pred #(odd? (first %))) LAST]
I ended up doing [(sp/view #(apply hash-map %)) sp/MAP-VALS]
you're hashing for no reason. If you want to go that route I'd use (partition-all 2 %)