![]() |
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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Mon, 29 May 2023 11:45:14 GMT
|