README.md in option-0.1.0 vs README.md in option-0.1.1
- old
+ new
@@ -49,9 +49,12 @@
# chain values
foo.map { |v| v * 2 }.map { |v| v.upcase }.get_or_else { "missing" } #=> BARBAR
# attempt to extract a value but default if None
None.fold(-> { "missing" }) { |v| v.upcase } #=> missing
+
+# filter values returning an option
+foo.filter { |v| v == "baz" } #=> None
```
## Build Status
<a href="http://travis-ci.org/rares/option">![http://travis-ci.org/rares/option](https://secure.travis-ci.org/rares/option.png)</a>