parrotcode: Untitled | |
Contents | Libraries |
Based on the Range object described in S03: http://perlcabal.org/syn/S03.html#Range_semantics
Create the class, with attributes, when this PBC is loaded.
Set some defaults for our attributes.
Return the from attribute
Return the to attribute
Return the min attribute
Return the max attribute
Return the min and max attributes as a 2 element list.
shift a value off the "front" of the range.
Throw an exception if we're out of values.
pop a value off the "end" of the range.
Throw an exception if we're out of values.
Reverse the direction of the range.
|