commit
d2c30efad9
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ You can ask questions about Specter by [opening an issue](https://github.com/nat
|
||||||
Here's how to increment all the even values for :a keys in a sequence of maps:
|
Here's how to increment all the even values for :a keys in a sequence of maps:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
|
user> (use 'com.rpl.specter)
|
||||||
user> (transform [ALL :a even?]
|
user> (transform [ALL :a even?]
|
||||||
inc
|
inc
|
||||||
[{:a 1} {:a 2} {:a 4} {:a 3}])
|
[{:a 1} {:a 2} {:a 4} {:a 3}])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue