README.md in option-0.4.0 vs README.md in option-0.5.0
- old
+ new
@@ -55,11 +55,16 @@
None.fold(-> { "missing" }) { |v| v.upcase } #=> missing
# filter values returning an option
foo.filter { |v| v == "baz" } #=> None
-# mutation
+# Side-effects
foo.inside { |v| v.upcase! } #=> Some("BAR")
+
+# use in a for loop
+for value in foo
+ puts value #=> bar
+end
```
## Build Status
[![Travis CI](https://secure.travis-ci.org/rares/option.png)](http://travis-ci.org/rares/option)