Skip to content
/ fukr Public

Naive, i mean, truly bad definitions of a Maybe monad

Notifications You must be signed in to change notification settings

fk1blow/fukr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SK

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}

Installation

If available in Hex, the package can be installed as:

  1. Add skalex to your list of dependencies in mix.exs:

    def deps do [{:skalex, "~> 0.0.1"}] end

  2. Ensure skalex is started before your application:

    def application do [applications: [:skalex]] end

About

Naive, i mean, truly bad definitions of a Maybe monad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages