Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from nightscape/patch-1

Wrap code in README.md in a Ruby code block
  • Loading branch information...
commit 9bfd75f67543cb1ada8e3856c1a0e67ac01cfb3d 2 parents b182d2e + 22872d5
Piotr Zolnierek authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  README.md
2  README.md
View
@@ -90,10 +90,12 @@ Maybe(1).to_s == '1'
```
`#or`
+```ruby
Maybe(nil).or(1) == Just(1)
Maybe(1).or(2) == Just(1)
Maybe(nil).or(1) == Just(1)
Maybe(nil).or(nil) == Nothing
+```
Falsey values (kind-of) examples:
Please sign in to comment.
Something went wrong with that request. Please try again.