summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-01-17 07:02:58 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-01-17 07:02:58 -0800
commit979a9e38899271c647de29c506b04e753380cb2e (patch)
tree4926f3408ebe3054c925f1ab954151de0cdf3b08 /txr.1
parent4c3316acecc462283c0c853369af93776c478d44 (diff)
downloadtxr-979a9e38899271c647de29c506b04e753380cb2e.tar.gz
txr-979a9e38899271c647de29c506b04e753380cb2e.tar.bz2
txr-979a9e38899271c647de29c506b04e753380cb2e.zip
New function: match-fboundp.
User vapnik spaknik was asking in the mailing list whether there is an existence test for TXR pattern functions. Now there is. * eval.c (eval_init): Register match-fboundp intrinsic. * match.c (match_fbound): New function. * match.h (match_fbound): Declared. * tests/011/txr-case.txr: New test cases. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.115
1 files changed, 15 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 6ef01d69..2674faeb 100644
--- a/txr.1
+++ b/txr.1
@@ -76047,6 +76047,21 @@ out of the pattern function
.codn foo ;
it is local inside it.
+.coNP Function @ match-fboundp
+.synb
+.mets (match-fboundp << symbol )
+.syne
+.desc
+The
+.code match-fboundp
+function returns
+.code t
+or
+.code nil
+if, respectively,
+.meta symbol
+is the name of an existing pattern function.
+
.coNP Macro @ txr-if
.synb
.mets (txr-if < name <> ( argument *) < input