Subclassing Stream
问题 I am interested in creating my own Stream subclass and I'm wondering what methods I should override (deploying on pharo and Gemstone). I have a collection with various types of things in it and I want to be able to stream over a subset of it, containing elements of a class. I don't want to copy the collection or use a collect: block because the collection may be large. My first use case is something like this: stream := self mailBox streamOf: QTurnMessage. stream size > 1 ifTrue: [ ^ stream