merge (Re: zip or marry etc)
Thomas Wouters
thomas at xs4all.net
Wed Jul 19 16:15:55 EDT 2000
On Wed, Jul 19, 2000 at 07:20:50PM +0000, Peter Schneider-Kamp wrote:
> Okay, assume you call it "merge". What will somebody who
> doesn't know what it's for think it does?
> merge([1, 2, 3], [4, 5, 6]) == [1, 4, 2, 5, 3, 6]
> or
> merge([1, 2, 3], [4, 5, 6]) == [(1, 4), (2 ,5), (3, 6)]?
Well, face it, there is no common English verb that will imply #2, because
tuples aren't a commonly accepted idea, in English ;) Which is why I still
prefer 'marry()'. If you don't know what it is, it's strange enough to start
you thinking about it. And if you already know it, it's hard to forget ;)
Unmarried-ly y'rs,
--
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list
mailing list