|
Smalltalk/X WebserverDocumentation of class 'SelectingReadStream': |
|
|
Class: SelectingReadStreamInheritance:Object | +--Stream | +--SelectingReadStream
Description:
A stream which only delivers elements for which a select block returns true
from an underlying stream.
Needs readAhead for proper atEnd handling.
[instance variables:]
hasReadAhead - because nil is a valid read-element,
this is used to know if readAhead is valid.
Class protocol:instance creationInstance protocol:instance creation queries
Examples:|s| s := SelectingReadStream on:#(1 2 3 4 5 6 7 8) readStream selecting:[:each | each even]. s upToEnd |
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:07:21 GMT
|