Functional Elixir
This library is a collection of useful data types brought to Elixir from other functional languages.
Available types
Currently implemented types are:
FE.Maybe
, for storing value of a computation or explicitly saying that it returned no value (no moret | nil
returned by functions). Similar to Elm’s Maybe or Haskell’s Data.Maybe;FE.Result
, for indicating that a computation successfully output a value or failed to do so, and what was the reason for that. Similar to Elm’s Result or Haskell’s Data.Either;FE.Review
, for indicating that a computation either succeeded, failed, or that it returned something meaningful, but some issues happened in the process. Similar to Haskell’s Data.These.
For more details about each of these types and detailed documentation, please consult the documentation page on hexdocs.
Installation
The library is available on hex.pm. You can use it in your project by adding it to dependencies:
defp deps() do
[
{:fe, "~> 0.1.0"}
]
end
License
This library is licensed under MIT License.