aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/sequences.texi11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index e58f0390a45..1166ef8b36f 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -413,7 +413,7 @@ but their relative order is also preserved:
413 (9 . "aaa") (9 . "zzz") (9 . "ppp") (9 . "fff")] 413 (9 . "aaa") (9 . "zzz") (9 . "ppp") (9 . "fff")]
414@end group 414@end group
415@end example 415@end example
416 416
417@xref{Sorting}, for more functions that perform sorting. 417@xref{Sorting}, for more functions that perform sorting.
418See @code{documentation} in @ref{Accessing Documentation}, for a 418See @code{documentation} in @ref{Accessing Documentation}, for a
419useful example of @code{sort}. 419useful example of @code{sort}.
@@ -804,6 +804,10 @@ vector or string (@pxref{Iteration} for more information about the
804@var{arguments} can itself include sequences allowing for nested 804@var{arguments} can itself include sequences allowing for nested
805destructuring. 805destructuring.
806 806
807The @var{arguments} sequence can also include the `&rest' marker
808followed by a variable name to be bound to the rest of
809@code{sequence}.
810
807@example 811@example
808@group 812@group
809(seq-let [first second] [1 2 3 4] 813(seq-let [first second] [1 2 3 4]
@@ -820,6 +824,11 @@ destructuring.
820 (list a b c)) 824 (list a b c))
821@result{} (1 2 3) 825@result{} (1 2 3)
822@end group 826@end group
827@group
828(seq-let [a b &rest others] [1 2 3 4]
829 others)
830@end group
831@result{} [3 4]
823@end example 832@end example
824@end defmac 833@end defmac
825 834