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)
|
||||
- [ALL](#all)
|
||||
- [ATOM](#atom)
|
||||
- [BEFORE-ELEM](#before-elem)
|
||||
- [BEGINNING](#beginning)
|
||||
- [DISPENSE](#dispense)
|
||||
- [END](#end)
|
||||
|
|
@ -104,6 +105,15 @@
|
|||
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` 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