Barry Margolin
6/2/2016 2:38:00 PM
In article <57503a3f$0$45004$742ec2ed@news.sonic.net>,
rpw3@rpw3.org (Rob Warnock) wrote:
> Grumpus <grumpus@example.org> wrote:
> +---------------
> | Is there a common name for the function that takes an item and a list
> | and places the item between adjacent list elements, like this:
> |
> | (foo '-- (list 1 2 3))
> | => (1 -- 2 -- 3)
> +---------------
>
> Perl (and some other languages) call that "join":
That's the name in several languages, but in all cases it also turns the
list/array into a string as well. So it's related, but this is a
significant difference. The way this name should generally be understood
is that it's joining the elements together into a string, with a
delimiter also interspersed.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***