Update README.md
Added clojure `use` statement required to make examples work.
This commit is contained in:
parent
d56ea62e00
commit
49df05013a
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ You can ask questions about Specter by opening an issue on Github and [labeling
|
||||||
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