Damian Conway <[EMAIL PROTECTED]> writes:

> Just to point out that the standard CS term is "merge".

`merge' produces a list of items from 2 (or more) lists of items;
`zip' produces a list of pairs (or tuples) of items from 2 (or more)
lists of items.  So in a language like Haskell which uses square
brackets for lists and round for tuples (and `==' for equality, etc.):

    merge [1,2,3,4],[5,6,7,8] == [1,5,2,6,3,7,4,8]

and

    zip [1,2,3,4],[5,6,7,8] == [(1,5),(2,6),(3,7),(4,8)]

(note: `merge' is often also used to denote producing a list which
respects ordering; then the above merge would produce
[1,2,3,4,5,6,7,8]).

[...]

It's called `zip'.  Really.

-- 
Ariel Scolnicov        |"GCAAGAATTGAACTGTAG"            | [EMAIL PROTECTED]
Compugen Ltd.          |Tel: +972-2-6795059 (Jerusalem) \ We recycle all our Hz
72 Pinhas Rosen St.    |Tel: +972-3-7658514 (Main office)`---------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555    http://3w.compugen.co.il/~ariels

Reply via email to