Hello,
Im trying to concatenate many collections (sets) together. I learn (from becks book) that the use of stream is efficient so I try the following code
write _ WriteStream on: Set new.
write nextPutAll: (Set with:4 with:5)
write contents
but it doesnt work because Set isnt a member of a SequenceableCollection then it doesnt understand the message : replaceFrom:to:with:startingAt:
Finally I try a code as:
write _ WriteStream on: {}.
write nextPutAll: (Set with:4 with:5)
write contents asSet
Im happy with the result but I need just to know if there is another pattern to use Set and Stream.
Thanks,
Houssam
____
"Le paradis touche les pieds des mères..."