improve readme example of using END

This commit is contained in:
Nathan Marz 2015-04-15 00:02:28 -04:00
parent 8c6fd95987
commit 46d3001217

View file

@ -68,8 +68,8 @@ user> (setval (srange 2 4) [-1 -1 -1] [0 1 2 3 4 5 6 7 8 9])
Here's how to concatenate the sequence [:a :b] to every nested sequence of a sequence: Here's how to concatenate the sequence [:a :b] to every nested sequence of a sequence:
```clojure ```clojure
user> (setval [ALL END] [:a :b] [[1] [1 2] [:c]]) user> (setval [ALL END] [:a :b] [[1] '(1 2) [:c]])
[[1 :a :b] [1 2 :a :b] [:c :a :b]] [[1 :a :b] (1 2 :a :b) [:c :a :b]]
``` ```
`END` is a wrapper around `srange-dynamic`, which takes in functions that return the start index and end index given the structure. `END` is a wrapper around `srange-dynamic`, which takes in functions that return the start index and end index given the structure.