Skip to content

kmdsbng/rmaybe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rmaybe

Build Status Gem Version

This library gives maybe monad on Ruby.

Installation

Add this line to your application's Gemfile:

gem 'rmaybe'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rmaybe

Usage

"a b c".maybe.split[2].upcase.end #=> "C"

"a b c".maybe.split[3].upcase.end #=> nil

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This project rocks and uses MIT-LICENSE.

About

maybe monad library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages