emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] seq-let 8cb4b4f 3/3: Update `seq-let' documentation


From: Nicolas Petton
Subject: [Emacs-diffs] seq-let 8cb4b4f 3/3: Update `seq-let' documentation
Date: Tue, 05 May 2015 20:05:30 +0000

branch: seq-let
commit 8cb4b4f98aa2758a016df25e39ff48cf132ed39c
Author: Nicolas Petton <address@hidden>
Commit: Nicolas Petton <address@hidden>

    Update `seq-let' documentation
    
    * doc/lispref/sequences.texi: Update the documentation of `seq-let'
    with the support of  `&rest'.
---
 doc/lispref/sequences.texi |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index e58f039..1166ef8 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -413,7 +413,7 @@ but their relative order is also preserved:
          (9 . "aaa") (9 . "zzz") (9 . "ppp") (9 . "fff")]
 @end group
 @end example
-                
+
 @xref{Sorting}, for more functions that perform sorting.
 See @code{documentation} in @ref{Accessing Documentation}, for a
 useful example of @code{sort}.
@@ -804,6 +804,10 @@ vector or string (@pxref{Iteration} for more information 
about the
 @var{arguments} can itself include sequences allowing for nested
 destructuring.
 
+The @var{arguments} sequence can also include the `&rest' marker
+followed by a variable name to be bound to the rest of
address@hidden
+
 @example
 @group
 (seq-let [first second] [1 2 3 4]
@@ -820,6 +824,11 @@ destructuring.
   (list a b c))
 @result{} (1 2 3)
 @end group
address@hidden
+(seq-let [a b &rest others] [1 2 3 4]
+  others)
address@hidden group
address@hidden [3 4]
 @end example
 @end defmac
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]