Remove reference to deprecated fil feature
This commit is contained in:
parent
1ee494ebae
commit
f6f6a27689
12
README.md
12
README.md
|
@ -146,19 +146,19 @@ input list.
|
||||||
|
|
||||||
## Fil
|
## Fil
|
||||||
|
|
||||||
`fil` returns a filtered list, based on a given list and a given condition. Partial function support in PebbLisp is
|
`fil` returns a filtered list, based on a given list and a given condition. The general form of a `fil`
|
||||||
nowhere near comprehensive, but `fil` operates on the bare notion that currently exists. The general form of a `fil`
|
|
||||||
expression is
|
expression is
|
||||||
|
|
||||||
```
|
```
|
||||||
(fil (partial-condition) (candidate-list))
|
(fil (condition) (candidate-list))
|
||||||
```
|
```
|
||||||
|
|
||||||
Each element in the candidate list is compared against the partial condition. If the comparison returns true, it is
|
Each element in the candidate list is compared against the
|
||||||
added to the returned list. For example:
|
condition. If the comparison returns true, it is added to the
|
||||||
|
returned list. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
(fil (< 100) (20 150 30 200))
|
(fil (fn (a) (> a 100) (20 150 30 200))
|
||||||
```
|
```
|
||||||
|
|
||||||
would return `( 150 200 )`, as no other elements fit the condition `(< 100 n)`.
|
would return `( 150 200 )`, as no other elements fit the condition `(< 100 n)`.
|
||||||
|
|
Loading…
Reference in New Issue