Range ^

Based on the Range object described in S03: http://perlcabal.org/syn/S03.html#Range_semantics

macros ^

:load ^

Create the class, with attributes, when this PBC is loaded.

:vtable ^

init ^

Set some defaults for our attributes.

:method ^

get_from ^

Return the from attribute

get_to ^

Return the to attribute

get_min ^

Return the min attribute

get_max ^

Return the max attribute

get_minmax ^

Return the min and max attributes as a 2 element list.

shift ^

shift a value off the "front" of the range.

Throw an exception if we're out of values.

pop ^

pop a value off the "end" of the range.

Throw an exception if we're out of values.

^

Reverse the direction of the range.


parrot