Document BEFORE-ELEM.

This commit is contained in:
Michael Fogleman 2017-09-11 10:53:28 -04:00
parent 0435612e54
commit 8d265f33a7

View file

@ -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.