Fix bug when calling reduce() with empty ranges
Merge pull request #256 from kylelutz/fix-reduce-empty-range

Fix bug when calling reduce() with empty ranges