Looks ahead 1 into the data.
Looks ahead 1 into the data. Returns -1.toChar if there is no character to peek to.
This does not advance the position in the data stream.
Looks ahead 2 into the data.
Looks ahead 2 into the data. Returns -1.toChar if there is no character to peek to.
This does not advance the position in the data stream.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
An Iterator[Char] with additional peek and peek2 methods.