You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example: 1.upto(9).sum equals 36 and not 45 because it sums up 1 up to 8. This is really counter-intuitive.
I propose a second argument inclusive that is set to false by default to not make a breaking change.
For example: 1.upto(9,inclusive=false).sum and 1.upto(9,inclusive=true).sum
The text was updated successfully, but these errors were encountered:
Example:
1.upto(9).sum
equals 36 and not 45 because it sums up 1 up to 8. This is really counter-intuitive.I propose a second argument
inclusive
that is set to false by default to not make a breaking change.For example:
1.upto(9,inclusive=false).sum
and1.upto(9,inclusive=true).sum
The text was updated successfully, but these errors were encountered: