The erlang convention for functions that can fail is to return a result tuple.
A result tuple is a two-tuple tagged either as a success(:ok) or a failure(:error).
The OK module works with result tuples by treating them as a result monad.
Recently added OK resources
Be the first to add one!
OK RecommendationsThere are no recommendations yet. Be the first to promote OK!
Have you used OK? Share your experience. Write a short recommendation and OK, you and your project will be promoted on Awesome Elixir.
OK alternatives and related packages
Based on the "Macros" category
Do you think we are missing an alternative of OK or a related project?
» Learn more from our partner.