diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-01-15 01:50:56 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-01-15 01:50:56 -0800 |
commit | b720b5468daf5498ab470293563e65fdeedbb959 (patch) | |
tree | 19607260cfcac47cd83ba73f6a837a8622a2081d /LICENSE | |
parent | 7290acecaf17b38154a065c732043e282c33c4dd (diff) | |
download | txr-b720b5468daf5498ab470293563e65fdeedbb959.tar.gz txr-b720b5468daf5498ab470293563e65fdeedbb959.tar.bz2 txr-b720b5468daf5498ab470293563e65fdeedbb959.zip |
matcher: allow omitted variabel in predicates
For instance @(oddp) instead of @(oddp x) to require an
element to satisfy oddp without capturing it to a variable.
* share/txr/stdlib/match.tl (compile-predicate-match): Make
the symbolic argument optional, defaulting to nil.
A nil symbol is already treated as pseudo-variable which
consumes an item without binding to a variable.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions