help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Designing interface of a simple elisp function


From: Edward O'Connor
Subject: Re: Designing interface of a simple elisp function
Date: 12 Oct 2002 17:24:55 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

On 12 Oct 2002, Henrik Motakef wrote:

> The map-functions work on sequences, not only lists. So, for
> example
> 
>   (mapcar 'identity "foo")
> 
> returns a list of three characters. An alternative would be
> 
>   (split-string "foo" "")
> 
> which gives a list of one-character strings.

You want to be careful with this latter option if you want to
write portable Elisp programs. Some XEmacsen will infloop on that.

-- 
Edward O'Connor
oconnor@soe.ucsd.edu


reply via email to

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