View Source Recurse (Recurse v0.1.0)

Recurse module.

Summary

Functions

Recursively matches the given expression against the given clauses.

Functions

Link to this macro

recurse(arg, list)

View Source (macro)

Recursively matches the given expression against the given clauses.

Examples

iex> recurse on 'example' do
...>   [] -> 0
...>   [_ | tail] -> 1 + recurse tail
...> end
7