Re: remove-elements-not-satisfying-the-predicate

Liste des GroupesRevenir à cl lisp 
Sujet : Re: remove-elements-not-satisfying-the-predicate
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lisp
Date : 03. Jul 2024, 04:54:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240702194136.679@kylheku.com>
References : 1 2 3
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-07-03, Paul Rubin <no.email@nospam.invalid> wrote:
Kaz Kylheku <643-408-1753@kylheku.com> writes:
The name filter doesn't tell me what is returned: the wanted
material or the unwanted material?
>
The term has been around forever, like in electronics: high pass
filters, low pass filters, etc.  It's almost always the wanted material
that comes out of the filter. 

Electronics filters (at least simple, passive ones like one-pole RC)
have only one output. There is no tap for the "filtered out" signal.

The "high pass" term alone tells you what passes onto that one and only
output.

"pass" would be an okay name for the function:

  (pass (lambda (x) (> x 3)) list)

  (reject (lambda (x) (> x 3)) list)

It's a "high pass filter" and not just a "high filter" because
the latter makes it unclear whether highs are rejected or passed!

It could be interpreted similarly to "UV filter" or "dust filter".


--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
3 Jul 24 * remove-elements-not-satisfying-the-predicate5B. Pym
3 Jul 24 `* Re: remove-elements-not-satisfying-the-predicate4Kaz Kylheku
3 Jul 24  `* Re: remove-elements-not-satisfying-the-predicate3Paul Rubin
3 Jul 24   `* Re: remove-elements-not-satisfying-the-predicate2Kaz Kylheku
3 Jul 24    `- Re: remove-elements-not-satisfying-the-predicate1Paul Rubin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal