Kembali ke Perpustakaan
Region:
Switch to EN
Menengah Exercism • elixir
Streams
Ringkasan Pelajaran
# 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