[ENH] Collection-withdoseparatedBy
sd
ducasse at iam.unibe.ch
Fri Dec 28 11:40:24 UTC 2001
from preamble:
"Change Set: Collection-withdoseparatedBy
Date: 28 December 2001
Author: sd
Define with:do:separatedBy: in sequenceableCollection.
Example:
| stream |
stream := ReadWriteStream on: (String new).
#(1 2 3) with: #(a b c) do: [:fromOne :fromTwo | stream nextPutAll:
fromOne asString ; nextPutAll: fromTwo asString]
separatedBy: [stream cr].
stream contents = '1a
2b
3c'"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Collection-withdoseparatedBy.cs.gz
Type: application/octet-stream
Size: 735 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20011228/256f590f/Collection-withdoseparatedBy.cs.obj
More information about the Squeak-dev
mailing list
|