This is nothing but a playground; view the test if interested!
...it is a Maybe that contains a value or not. If it doesn't, it says that is :none, otherwise, it's the actual value.
To build one, you call Maybe.from("some dumb value)
, which will eventuall wrap the value
inside a tuple - {:some, value}
- although it may be better as a structure, something as
%Maybe.Some{value}
If available in Hex, the package can be installed as:
-
Add skalex to your list of dependencies in
mix.exs
:def deps do [{:skalex, "~> 0.0.1"}] end
-
Ensure skalex is started before your application:
def application do [applications: [:skalex]] end