HamletDRC
2007-10-23 18:02:01 UTC
Hi,
I want to define a range with no upper limit.
I looked at RangeTest.groovy and didn't see a usage for this.
A simple example might be:
def range = 5..INFINITY
so the range represents from 5 to infinity.
I'm using INTEGER.MAX_VALUE now, but this doesn't feel right.
Any suggestions?
Thanks,
--
Hamlet D'Arcy
-----
--
Hamlet D'Arcy
http://hamletdarcy.blogspot.com
I want to define a range with no upper limit.
I looked at RangeTest.groovy and didn't see a usage for this.
A simple example might be:
def range = 5..INFINITY
so the range represents from 5 to infinity.
I'm using INTEGER.MAX_VALUE now, but this doesn't feel right.
Any suggestions?
Thanks,
--
Hamlet D'Arcy
-----
--
Hamlet D'Arcy
http://hamletdarcy.blogspot.com
--
View this message in context: http://www.nabble.com/Range-with-no-upper-limit--tf4679312.html#a13370189
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
View this message in context: http://www.nabble.com/Range-with-no-upper-limit--tf4679312.html#a13370189
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email