Remove reference to deprecated fil feature

This commit is contained in:
Sage Vaillancourt 2023-12-17 12:14:29 -05:00
parent 1ee494ebae
commit f6f6a27689
1 changed files with 6 additions and 6 deletions

View File

@ -146,19 +146,19 @@ input list.
## Fil
`fil` returns a filtered list, based on a given list and a given condition. Partial function support in PebbLisp is
nowhere near comprehensive, but `fil` operates on the bare notion that currently exists. The general form of a `fil`
`fil` returns a filtered list, based on a given list and a given condition. The general form of a `fil`
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
added to the returned list. For example:
Each element in the candidate list is compared against the
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)`.