Streams in programming is an important concept. It allows you to handle high volumes of data without consuming much memory. A stream is an object that holds internal state (say reader position in a file) and can produce new values when requested.
Here's an example of a reader stream that reads a file in chunks in Swift 4.2:
final class ChunkReader {