elixir-monad icon indicating copy to clipboard operation
elixir-monad copied to clipboard

Examples no longer work

Open alexrp opened this issue 11 years ago • 1 comments

iex(1)> require Monad
nil
iex(2)> monad ErrorM do
...(2)>     a <- {:ok, 2}
...(2)>     b <- {:ok, 3}
...(2)>     return a * b
...(2)> end
** (RuntimeError) undefined function: a/0

alexrp avatar Mar 11 '14 08:03 alexrp

I'm testing this with Elixir 1.1.1 and it works if I import Monad.

ibizaman avatar Dec 12 '15 11:12 ibizaman