peek package:io-streams

Observes the first value from an InputStream without consuming it. Returns Nothing if the InputStream is empty. peek satisfies the following law:
Streams.peek stream >> Streams.read stream === Streams.read stream