emacs-devel
[Top][All Lists]
Advanced

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

Re: request for a new function, say, `sequence'


From: Stefan Monnier
Subject: Re: request for a new function, say, `sequence'
Date: Thu, 27 Mar 2003 12:08:34 -0500

> Stefan Monnier wrote:
> 
>    >    How about
>    > 
>    >     (dotimes (VAR [START END] RESULT) BODY...)
>    > 
>    > I do not completely understand this.
> 
>    [...] is Elisp notation for vectors.  I see that it is ambiguous
>    because [...] is also used in such contexts to denote optional
>    arguments.
> 
> So, unless START and END are constants, a typical usage would be:
> 
> (dotimes (var (vector start end) result) body...)
> 
> (if I now understand correctly).

No.  Example usage would be:

        (dotimes (x [(1+ prev) (+ prev 13)])
          (blabla x))


-- Stefan





reply via email to

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