(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

sirian
From: Stephen Compall <[hidden email]>
To: Paolo Bonzini <[hidden email]>
Cc: GNU Smalltalk <[hidden email]>
Subject: Re: [Help-smalltalk] [PATCH] Handful of new methods
References: <[hidden email]>
Date: Sat, 02 Feb 2008 11:01:16 -0600
In-Reply-To: <[hidden email]> (Paolo Bonzini's message of "Sat, 02
        Feb 2008 10:49:29 +0100")
Message-ID: <[hidden email]>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Paolo Bonzini <[hidden email]> writes:
> I implemented the equivalent of Python's zip and izip

I have only ever found zip useful in contexts with an arbitrary number
of arrays to zip.  That, and even though my naming skills haven't
improved, maybe #zip:zip:... would be a better naming convention to
describe this operation?

> Would you like them in 3.0.x too?

I would like the Number methods in the stable series.

--
But you know how reluctant paranormal phenomena are to reveal
themselves when skeptics are present. --Robert Sheaffer, SkI 9/2003

write me on member.fsf.org, username s11




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Paolo Bonzini-2

> I have only ever found zip useful in contexts with an arbitrary number
> of arrays to zip.

I see.  That would be a kind of transpose operation.

> That, and even though my naming skills haven't
> improved, maybe #zip:zip:... would be a better naming convention to
> describe this operation?

The #with: naming derives from SequenceableCollection>>#with:do:.

'123' with: '456' do: [ :a :b | (a, b) printNl ].
('123' with: '456') do: [ :ab | ab join printNl ].

> I would like the Number methods in the stable series.

Thanks for the feedback.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk