It is often the case that you want to wrap the result of an operation in an
":ok" or ":error" Tuple. We should add convenience wrapper functions since
this is so common and it cleans up otherwise ugly code.
def ok(value), do: {:ok, value}
def error(value), do: {:error, value}
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/8c0db6d1-3137-4e15-bee9-6d8635e10a0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.