|
Re: using collect on a ReadStream: msg#00097lang.smalltalk.squeak.beginners
On Tue, 2007-10-30 at 08:27 +0100, Oscar Nierstrasz wrote: > Strange. I do not see these methods supported by ReadStream in my > image. > > I only see 13 implementors of #collect: > > What does your implementation of ReadStream>>collect: say? > Oh, I'm sorry. The methods in ReadStream are added by Glorp. So I take another list for asking :) FYI the implementation is ReadStream>>collect: aBlock | newStream | newStream := AddingWriteStream on: collection species new. [self atEnd] whileFalse: [newStream nextPut: (aBlock value: self next)]. ^newStream contents Norbert
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: MIDI support, stan414 |
|---|---|
| Next by Date: | Re: MIDI support, Brad Fuller |
| Previous by Thread: | Re: using collect on a ReadStream, Oscar Nierstrasz |
| Next by Thread: | A time variable., juandavid014 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |