[Top][All Lists]

[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: Mon, 24 Mar 2003 19:57:10 -0500

> > Oops, I should have written "we'll use".  Kawabata-san is
> > now working on improving Indian language support (including
> > tamil and malayalam), and in the comming code, the same
> > functionality is required in many other files.
> > And, even if it is used just in devan-util.el, it's too
> > generic to fit in there.
> Another possible usage of `sequence' is this.
> Currently, in lisp/international/characters.el, we have this
> kind of code repeatedly.
> (setq c X)
> (while (<= c Y)
>   ..operate-on-C
>   (setq c (1+ c)))
> We can change it to this:
> (dolist (c (sequence #X #Y 'list))
>   ..operate-on-C)

I agree that such code is pretty common, but I'd rather extend dotimes
to allow something like (dotimes (c (cons X Y)) BODY).


reply via email to

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