Update README.md
This commit is contained in:
parent
1e1d976714
commit
f0980bb777
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ Fundamentally, cursors are based on [lenses](https://speakerdeck.com/markhibberd
|
||||||
(def my-atom (atom 0))
|
(def my-atom (atom 0))
|
||||||
(def a-str (cursor my-atom print-number parse-number))
|
(def a-str (cursor my-atom print-number parse-number))
|
||||||
;; @a-str -> "0"
|
;; @a-str -> "0"
|
||||||
(reset! ab0 "1.2")
|
(reset! a-str "1.2")
|
||||||
(println @my-atom)
|
(println @my-atom)
|
||||||
;; 1.2
|
;; 1.2
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue