val = try do Enum.each 20..100, fn(x) -> if rem(x, 13) == 0, do: throw(x) end "Got nothing" catch x -> "Got #{x}" end IO.puts(val)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more