Merge branch 'master' of github.com:nathanmarz/specter.wiki
This commit is contained in:
commit
958f1d3c7f
1 changed files with 11 additions and 2 deletions
|
|
@ -47,6 +47,11 @@
|
||||||
- [nthpath](#nthpath)
|
- [nthpath](#nthpath)
|
||||||
- [parser](#parser)
|
- [parser](#parser)
|
||||||
- [pred](#pred)
|
- [pred](#pred)
|
||||||
|
- [pred=](#pred=)
|
||||||
|
- [pred<](#pred<)
|
||||||
|
- [pred<=](#pred<=)
|
||||||
|
- [pred>](#pred>)
|
||||||
|
- [pred>=](#pred>=)
|
||||||
- [putval](#putval)
|
- [putval](#putval)
|
||||||
- [not-selected?](#not-selected)
|
- [not-selected?](#not-selected)
|
||||||
- [selected?](#selected)
|
- [selected?](#selected)
|
||||||
|
|
@ -313,24 +318,28 @@ the structure has no metadata or may not contain metadata.
|
||||||
|
|
||||||
## NAME
|
## NAME
|
||||||
|
|
||||||
`NAME` navigates to the name of a keyword.
|
`NAME` navigates to the name of a keyword or symbol.
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
=> (select [NAME] :key)
|
=> (select [NAME] :key)
|
||||||
["key"]
|
["key"]
|
||||||
=> (select [MAP-KEYS NAME] {:a 3 :b 4 :c 5})
|
=> (select [MAP-KEYS NAME] {:a 3 :b 4 :c 5})
|
||||||
["a" "b" "c"]
|
["a" "b" "c"]
|
||||||
|
=> (setval [MAP-KEYS NAME] "q" {'a/b 3 'bbb/c 4 'd 5})
|
||||||
|
{a/q 3, bbb/q 4, q 5}
|
||||||
```
|
```
|
||||||
|
|
||||||
## NAMESPACE
|
## NAMESPACE
|
||||||
|
|
||||||
`NAMESPACE` navigates to the namespace of keywords or variables.
|
`NAMESPACE` navigates to the namespace of keywords or symbols.
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
=> (select [ALL NAMESPACE] [::test ::fun])
|
=> (select [ALL NAMESPACE] [::test ::fun])
|
||||||
["playground.specter" "playground.specter"]
|
["playground.specter" "playground.specter"]
|
||||||
=> (select [ALL NAMESPACE] [::test :fun])
|
=> (select [ALL NAMESPACE] [::test :fun])
|
||||||
["playground.specter" nil]
|
["playground.specter" nil]
|
||||||
|
=> (setval [ALL NAMESPACE] "a" [::test :fun])
|
||||||
|
[:a/test :a/fun]
|
||||||
```
|
```
|
||||||
|
|
||||||
## NIL->LIST
|
## NIL->LIST
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue