On Tue, Jun 9, 2009 at 11:16 AM, Titus von der Malsburg
<malsburg@gmail.com>wrote:

> On Tue, Jun 09, 2009 at 11:04:03AM -0400, Stavros Macrakis wrote:
> > This may seem like a minor point, but I think it is worthwhile using
> > descriptive names for functions.
>
> Makes sense.  I thought I've seen this use somewhere else (probably in
> Lisp?).  What better name do you suggest for this operation?
>

The two meanings I can think of in Lisp for splicing are

1) The backquote operator ,@X, which means to insert the value of X as part
of the surrounding list rather than as an element of the list, e.g.   `(a b
,@'(c d) e f) == (append '(a b) '(c d) '(e f)) =>  (a b c d e f), as opposed
to `(a b ,'(c d) e f) == (append '(a b) (list '(c d)) '(e f)) => (a b (c d)
e f).

2) The notion of inserting (typically destructively) one list in the middle
of another.

I would suggest a name like 'intersperse' or 'alternate'.

            -s

	[[alternative HTML version deleted]]


