asStream

Converts the given range to a stream. Input ranges are converted to input streams, and output ranges are converted to output streams. Note that if the given range is both an input and an output range, an input stream is returned. Use asInputStream and asOutputStream to choose explicitly.

asStream
(
R
E = ElementType!R
)
()
if (
isInputRange!R ||
isOutputRange!(R, E)
)

Parameters

range R

The range to convert.

Return Value

Type: auto

A stream that wraps the given range.

Meta