Document BEFORE-ELEM.
This commit is contained in:
parent
0435612e54
commit
8d265f33a7
1 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
- [AFTER-ELEM](#after-elem)
|
- [AFTER-ELEM](#after-elem)
|
||||||
- [ALL](#all)
|
- [ALL](#all)
|
||||||
- [ATOM](#atom)
|
- [ATOM](#atom)
|
||||||
|
- [BEFORE-ELEM](#before-elem)
|
||||||
- [BEGINNING](#beginning)
|
- [BEGINNING](#beginning)
|
||||||
- [DISPENSE](#dispense)
|
- [DISPENSE](#dispense)
|
||||||
- [END](#end)
|
- [END](#end)
|
||||||
|
|
@ -104,6 +105,15 @@
|
||||||
2
|
2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## BEFORE-ELEM
|
||||||
|
|
||||||
|
`BEFORE-ELEM` navigates to the 'void' element before the sequence. For transformations – if result is not `NONE`, then prepend that value.
|
||||||
|
|
||||||
|
```clojure
|
||||||
|
=> (setval BEFORE-ELEM 3 [1 2])
|
||||||
|
[3 1 2]
|
||||||
|
```
|
||||||
|
|
||||||
## BEGINNING
|
## BEGINNING
|
||||||
|
|
||||||
`BEGINNING` navigates to the empty subsequence before the beginning of a collection. Useful with `setval` to add values onto the beginning of a sequence.
|
`BEGINNING` navigates to the empty subsequence before the beginning of a collection. Useful with `setval` to add values onto the beginning of a sequence.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue