-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extended the ranges to support floating point numbers.
Example: 1.23 ... 10.45 -> each { |i| say i } This is also true for `..`, `^..` and `..^` - Added the `reduce` method to the RangeNumber object, which allows reducing large ranges to a single value efficiently. Example: 1..1e5 -> reduce { |a,b| a + b } # sums all numbs from 1 to 1e5
- Loading branch information
trizen
committed
Dec 31, 2015
1 parent
69ad567
commit 2faee2a
Showing
4 changed files
with
91 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters