# Copyright 2005 Kevin Reid, under the terms of the MIT X license # found at http://www.opensource.org/licenses/mit-license.html ................ ? pragma.enable("dot-props") > def ALL := EIO::ALL ? def t := "Teh quike bruin fax jimp't ovah thy lizy dugz." # value: "Teh quike bruin fax jimp't ovah thy lizy dugz." ? def s := t.asStream() # value: "Teh quike bruin fax \...".asStream() ? s.available() # value: 46 ? s.remaining() # value: 46 ? s.read(0, 10) # value: "Teh quike " ? s # value: "bruin fax jimp't ova\...".asStream() ? s.read(0, ALL) # value: "bruin fax jimp't ovah thy lizy dugz." ? s.terminates() # value: true XXX Should FlexLists have asStream? If so, what would it mean? XXX all varieties of map streams (pairs, values, keys)? XXX Set streams XXX turning streams into tables