Initial navigator list. Add ALL.

This commit is contained in:
Christopher O'Donnell 2016-06-10 20:42:36 -04:00
parent 2d8884f0c8
commit 5082fdc47f

16
List-of-Navigators.md Normal file
View file

@ -0,0 +1,16 @@
# List of Navigators with Example(s)
## The All Caps Ones
### ALL
The `ALL` navigator navigates to every element in a collection. If the collection is a map, it will navigate to each key-value pair `[key value]`. The resulting elements will be reconstructed as a vector.
```clojure
=> (select [ALL] [0 1 2 3])
[0 1 2 3]
=> (select [ALL] (list 0 1 2 3))
[0 1 2 3]
=> (select [ALL] {:a :b, :c :d, :e :f})
[[:a :b] [:c :d] [:e :f]]
```