Document pred= and co.
This commit is contained in:
parent
57f35a2234
commit
fc89c47a13
1 changed files with 65 additions and 0 deletions
|
|
@ -743,6 +743,71 @@ See also [must](#must).
|
|||
[0 2 4 6 8]
|
||||
```
|
||||
|
||||
## pred=
|
||||
|
||||
`(pred= value)`
|
||||
|
||||
Keeps elements only if they equal the provided value.
|
||||
|
||||
See also [pred](#pred).
|
||||
|
||||
```clojure
|
||||
=> (select [ALL (pred= 2)] [1 2 2 3 4 0])
|
||||
[2 2]
|
||||
```
|
||||
|
||||
## pred<
|
||||
|
||||
`(pred< value)`
|
||||
|
||||
Keeps elements only if they are less than the provided value.
|
||||
|
||||
```clojure
|
||||
=> (select [ALL (pred< 3)] [1 2 2 3 4 0])
|
||||
[1 2 2 0]
|
||||
```
|
||||
|
||||
See also [pred](#pred).
|
||||
|
||||
## pred>
|
||||
|
||||
`(pred> value)`
|
||||
|
||||
Keeps elements only if they are greater than the provided value.
|
||||
|
||||
```clojure
|
||||
=> (select [ALL (pred> 3)] [1 2 2 3 4 0])
|
||||
[4]
|
||||
```
|
||||
|
||||
See also [pred](#pred).
|
||||
|
||||
## pred<=
|
||||
|
||||
`(pred<= value)`
|
||||
|
||||
Keeps elements only if they are less than the provided value.
|
||||
|
||||
```clojure
|
||||
=> (select [ALL (pred<= 3)] [1 2 2 3 4 0])
|
||||
[1 2 2 3 0]
|
||||
```
|
||||
|
||||
See also [pred](#pred).
|
||||
|
||||
## pred>=
|
||||
|
||||
`(pred>= value)`
|
||||
|
||||
Keeps elements only if they are greater than the provided value.
|
||||
|
||||
```clojure
|
||||
=> (select [ALL (pred>= 3)] [1 2 2 3 4 0])
|
||||
[3 4]
|
||||
```
|
||||
|
||||
See also [pred](#pred).
|
||||
|
||||
## putval
|
||||
|
||||
`(putval val)`
|
||||
|
|
|
|||
Loading…
Reference in a new issue