efcasado / streams

Streams implementation in Erlang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streams

Streams implementation in Erlang

Build Status

The following is an example of how streams can be used to define the infinite Fibonacci sequence.

fibonacci() ->
    fibonacci_helper(0, 1).

fibonacci_helper(M, N) ->
    ?STREAM(M, fibonacci_helper(N, M + N)).

About

Streams implementation in Erlang

License:MIT License


Languages

Language:Erlang 100.0%