raganwald / andand Goto Github PK
View Code? Open in Web Editor NEWThe Maybe Monad in idiomatic Ruby
License: Other
The Maybe Monad in idiomatic Ruby
License: Other
Having used andand
before it would've been nice to know that I could have used try
from Rails in the majority of cases without having to add an additional dependency to the project.
I can't install the gem
unless Object.method_defined?('tap')
alias :tap :me
end
Hi @raganwald, after my first few steps into the "monadic" world, I found this repository and thanks to it also Ick. Unfortunately I could not find any maintained version of Ick. Do you know about any developed version of Ick or it's successor?
Hey, you accepted a PR some time ago ( #6 )
Can you make it go to rubygems please?
Thank you
Could you please post a copy of the 1.3.2 gem to rubygems.org
Thanks!
class Apple
def initialize(color)
@color = color
end
attr_reader :color
def green?
color == 'GREEN'
end
end
an_apple = Apple.new 'GREEN'
an_apple.andand.green? # => true
another_apple = Apple.new 'RED'
another_apple.andand_not.green? # => true
# or
another_apple.andand.not.green? # => true
/Users/joel/.rvm/gems/ruby-1.9.2-p0@gemtest/gems/andand-1.3.1/lib/andand.rb:111: warning: undefining `object_id' may cause serious problems
The README here says "If you are using Ruby on Rails, please consider using RewriteRails instead of the andand gem.", but RewriteRails is under your deprecated repos? Which should I use?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.