|
Re: using collect on a ReadStream: msg#00091lang.smalltalk.squeak.beginners
Hi Norbert, Streams don't support the collection protocols. You can convert a stream to a collection by sending #contents to the stream: stream := (ReadStream on: #( #(#a #b) #(#b #c))). stream contents collect: [:each| 'k',each first] --> #('ka' 'kb') Is that what you want? Cheers, Oscar On Oct 30, 2007, at 2:00, Norbert Hartl wrote: Hi,
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | using collect on a ReadStream, Norbert Hartl |
|---|---|
| Next by Date: | Re: using collect on a ReadStream, Norbert Hartl |
| Previous by Thread: | using collect on a ReadStream, Norbert Hartl |
| Next by Thread: | Re: using collect on a ReadStream, Norbert Hartl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |