【文件属性】:
文件名称:rmaybe:也许 monad 库
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-22 18:16:51
Ruby
或许吧
这个库可能在 Ruby 上提供了 monad。
安装
将此行添加到应用程序的 Gemfile 中:
gem 'rmaybe'
然后执行:
$ bundle
或者自己安装:
$ gem install rmaybe
用法
"a b c".maybe.split[2].upcase.end #=> "C"
"a b c".maybe.split[3].upcase.end #=> nil
贡献
分叉吧
创建您的功能分支( git checkout -b my-new-feature )
提交您的更改( git commit -am 'Add some feature' )
推送到分支( git push origin my-new-feature )
创建新的拉取请求
执照
这个项目震撼并使用 MIT-LICENSE。
【文件预览】:
rmaybe-master
----.gitignore(154B)
----README.md(816B)
----Gemfile(114B)
----.rspec(31B)
----spec()
--------core()
--------spec_helper.rb(201B)
----LICENSE.txt(1KB)
----rmaybe.gemspec(674B)
----.travis.yml(73B)
----lib()
--------rmaybe.rb(657B)
--------rmaybe()
----Rakefile(28B)