summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-25 21:36:24 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-25 21:36:24 -0800
commit6d538cae2993b242484d7d89ede571db45093281 (patch)
tree6f3786aadf34bb99ea3a20ba411b961690131c16
parent2e6af871326f4eb6a2674034c5a02afca2877f26 (diff)
downloadtxr-6d538cae2993b242484d7d89ede571db45093281.tar.gz
txr-6d538cae2993b242484d7d89ede571db45093281.tar.bz2
txr-6d538cae2993b242484d7d89ede571db45093281.zip
doc: really remove @(rcons) pattern operator
* txr.1: Fix typo under Range match. Remove the documentation for the nonexistent pattern operator @(rcons ...) that was supposed to be removed before release 249.
-rw-r--r--txr.150
1 files changed, 1 insertions, 49 deletions
diff --git a/txr.1 b/txr.1
index bd267a82..30754198 100644
--- a/txr.1
+++ b/txr.1
@@ -39880,7 +39880,7 @@ part.
Note that if the range expression notation
.code a..b
-is used as a pattern, that is actualy a list pattern, due to
+is used as a pattern, that is actually a list pattern, due to
that being a syntactic sugar for
.codn "(rcons a b)" .
@@ -40137,54 +40137,6 @@ operator matching against an association list.
--> (42)
.brev
-.coNP Pattern operator @ rcons
-.synb
-.mets >> @(rcons from-pattern << to-pattern )
-.mets >> @ from-pattern..to-pattern
-.syne
-.desc
-The
-.code rcons
-pattern matches a range. There is no semantic difference
-between the
-.code cons
-operator and the
-.mono
-.meti >> #R( from-pattern << to-pattern )
-.onom
-syntax. Refer to the Range match section for a semantic description.
-
-Note that if the dotdot syntactic sugar is used, the leading
-.code @
-is still required, because the unadorned expression
-.code "(rcons ...)"
-matches a list beginning with the symbol
-.code rcons
-and not a range object.
-In particular, note that
-.code "@(rcons @a @b)"
-corresponds to
-.code "@@a..@b"
-and not
-.code "@a..@b"
-or
-.codn "@(@a..@b)" .
-
-.TP* Examples:
-
-.verb
- (if-match @(rcons 1 2) 1..2 :yes :no) -> :yes
- (when-match @(rcons @a @b) (list a b)) -> (1 2)
-
- ;; not a range match: match rcons source code:
- (when-match @a..@b 'x..y (list a b)) -> (x y)
-
- ;; de-sugared precise equivalent of previous:
- (when-match (rcons @a @b) '(rcons x y)
- (list a b)) -> (x y)
-.brev
-
-
.coNP Pattern operator @ let
.synb
.mets @(let < name << pattern)