Back to Library
Region:
Switch to ID
Intermediate Exercism • elixir
Streams
Lesson Overview
# Introduction
About
The Stream module is a lazy alternative to the eager Enum module. Streams:
- Implement the Enumerable protocol.
- Are composable.
- Are internally represented as functions.
- Can be infinite.
Streams are ideal for dealing with slow resources and very large, potentially infinite, collections. For all other cases, use Enum instead.
Originally from Exercism elixir concepts