author | Stefan Vogel <sv@exept.de> |
Sat, 09 Jul 2016 21:19:49 +0200 | |
changeset 20128 | a9a3a8af994f |
parent 20127 | 9268d5186b15 |
child 20129 | 2424f9b0b209 |
PeekableStream.st | file | annotate | diff | comparison | revisions |
--- a/PeekableStream.st Sat Jul 09 13:31:01 2016 +0200 +++ b/PeekableStream.st Sat Jul 09 21:19:49 2016 +0200 @@ -595,6 +595,13 @@ ^ self peek ! +nextPeekOrNil + "advance to next element and return the peeked element" + + self nextOrNil. + ^ self peekOrNil +! + nextUpTo:anObject "read a collection of all objects up-to anObject and return these elements, but excluding anObject.