Module

Stream

Changes by version

Elixir 1.19.5

· 1 change

Bugfix Tool: Elixir

Revert optimization which caused nested streams in Stream.flat_map/2 to crash

Elixir 1.19.0

· 1 change

Bugfix Tool: Elixir

Ensure Stream.transform/5 respects suspend command when its inner stream halts

Elixir 1.18.3

· 1 change

Bugfix Tool: Elixir

Do not raise when Stream.cycle/1 is explicitly halted

Elixir 1.18.0

· 1 change

Bugfix Tool: Elixir

Do not halt streams twice in Stream.transform/5

Elixir 1.14.4

· 1 change

Enhancement Tool: Elixir

Fix Stream.zip/1 hanging on empty list

Elixir 1.14.0

· 1 change

Enhancement Tool: Elixir

Add Stream.duplicate/2 and Stream.transform/5

Elixir 1.12.0

· 1 change

Enhancement Tool: Elixir

Add Stream.zip_with/2 and Stream.zip_with/3

Elixir 1.10.0

· 2 changes

Bugfix Tool: Elixir

Close with correct accumulator in Stream.resource/3 when called for a single-element list

Bugfix Tool: Elixir

Allow Stream.cycle/1 to be double nested inside Stream.cycle/1

Elixir 1.7.0

· 1 change

Enhancement Tool: Elixir

Stream.chunk/2/3/4 is deprecated in favor of Stream.chunk_every/2/3/4 - notice chunk_every does not discard incomplete chunks by default

Elixir 1.6.1

· 1 change

Bugfix Tool: Elixir

Reintroduce zipping of any enumerable of enumerables in Stream.zip/1 (regression in v1.6.0)

Elixir 1.6.0

· 2 changes

Enhancement Tool: Elixir

Add Stream.intersperse/2

Bugfix Tool: Elixir

Ensure Stream.chunk_while/4 does not emit more elements than necessary when halted

Elixir 1.5.0

· 3 changes

Enhancement Tool: Elixir

Add Stream.chunk_every/2 and Stream.chunk_every/4 with a more explicit API than Stream.chunk/2 and Stream.chunk/4

Bugfix Tool: Elixir

Fix stream cycle over empty enumerable

Enhancement Tool: Elixir

Deprecate Stream.filter_map/3 in favor of Stream.filter/2 + Stream.map/2

Elixir 1.4.2

· 1 change

Bugfix Tool: Elixir

Allow consuming multiple items from suspended enumerable in Stream.transform/3

Elixir 1.4.0

· 4 changes

Enhancement Tool: Elixir

Add Stream.map_every/2 that invokes the given function with every nth item

Enhancement Tool: Elixir

Introduce Stream.zip/1 to lazily zip multiple entries at once

Bugfix Tool: Elixir

Ensure Stream.take/2 does not consume next element on :suspend

Enhancement Tool: Elixir

Deprecate Stream.uniq/2 in favor of Stream.uniq_by/2

Elixir 1.2.0

· 1 change

Enhancement Tool: Elixir

Add Stream.with_index/2

Elixir 1.1.0

· 2 changes

Enhancement Tool: Elixir

Add Stream.dedup/1, Stream.dedup_by/2 and Stream.transform/4

Bugfix Tool: Elixir

Ensure suspending Stream.flat_map/2 and Stream.transform/3 does not consume unecessary items from the given enumerable

Elixir 1.0.5

· 1 change

Enhancement Tool: Elixir

Ensure Stream.flat_map/2 does not consume more items than necessary when piped to another Stream.flat_map/2 that halts in the inner stream

Elixir 1.0.1

· 1 change

Enhancement Tool: Elixir

Ensure chunk/4 works correctly when halted

Elixir 0.15.0

· 1 change

Enhancement Tool: Elixir

Implement the Inspect protocol for Streams so we do not leak the Stream representation

Elixir 0.14.3

· 1 change

Enhancement Tool: Elixir

Fix bug when flat_map is used inside another flat_map with an Enumerable

Elixir 0.13.0

· 1 change

Enhancement Tool: Elixir

Add Stream.into/2 and Stream.into/3

Elixir 0.12.5

· 1 change

Enhancement Tool: Elixir

Stream.after/1 is deprecated

Elixir 0.12.2

· 1 change

Enhancement Tool: Elixir

Add Stream.transform/3

Elixir 0.12.0

· 4 changes

Enhancement Tool: Elixir

Add Stream.resource/3

Enhancement Tool: Elixir

Add Stream.zip/2, Stream.filter_map/3, Stream.each/2, Stream.take_every/2, Stream.chunk/2, Stream.chunk/3, Stream.chunk/4, Stream.chunk_by/2, Stream.scan/2, Stream.scan/3, Stream.uniq/2, Stream.after/2 and Stream.run/1

Enhancement Tool: Elixir

Support Stream.take/2 and Stream.drop/2 with negative counts

Enhancement Tool: Elixir

The Stream.Lazy structure has changed to accumulate functions and accumulators as we go (its inspected representation has also changed)

Elixir 0.10.3

· 1 change

Enhancement Tool: Enhancements

Add Stream.unfold/1

Elixir 0.10.2

· 1 change

Enhancement Tool: Elixir

Add Stream.concat/1, Stream.concat/2 and Stream.flat_map/2