From f6f6a276896b1df5af9dc26cef3d9b0bd638969e Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 17 Dec 2023 12:14:29 -0500 Subject: [PATCH] Remove reference to deprecated fil feature --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dd818e8..837f737 100644 --- a/README.md +++ b/README.md @@ -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)`.