README.md in hyper_iterator-0.2.2 vs README.md in hyper_iterator-0.3.0
- old
+ new
@@ -33,9 +33,12 @@
## Available Methods (adding more)
- `each_slice!`
- `each!`
+- `HyperIterator.each!`: This is the same as `each!`. But it takes an array as argument.
+This is added because there are gems that implement their own `each` method (e.g. the pg
+gem). Instead of monkey patching all the gems out there, this is a compromise for flexibility.
## Gotcha
These methods work just as the non bang version, except that, it **WILL MUTATE** the original array
by **REMOVING ALL** the elements from it.