Skip to content

Instantly share code, notes, and snippets.

@raetam
raetam / twitter_stream.ex
Created September 30, 2019 13:42 — forked from mgwidmann/twitter_stream.ex
Infinite Streams with Elixir
# Elixir has lazily evaluated enumerable objects that allow you
# to work with enumerable objects like lists either only as needed
# or infinitely.
# Start up iex to play around
$ iex
# Typical enumeration is done eagerly where the result is computed ASAP
iex> Enum.map(1..10, fn i -> i * 2 end)
[2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
@raetam
raetam / introrx.md
Created May 17, 2019 01:57 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing