Range
module methods:
value methods:
:
Return a new Value of Range.
begin is left bound, and optional end is right bound.
(Range: begin(int) [end(int)]) -> Range
begin
Return the first number of Range.
(Range begin) -> int
end
Return the last number of Range.
(Range end) -> int
count
Return length of Range.
(Range count) -> int
>>
Range walk through begin to end and return itself.
f is called for each step.
(Range >> f(lambda)) -> self
<<
Range walk reversely from end to begin and return itself.
f is called for each step.
(Range << f(lambda)) -> self
>>>
Range walk through begin to end and return itself.
s indicates the step width, and f is called for each step.
(Range >>> s(int) f(lambda)) -> self
<<<
Range walk reversely from end to begin and return itself.
s indicates the step width, and f is called for each step.
(Range <<< s(int) f(lambda)) -> self
sample
Return random number between the begin and end.
(Range sample) -> self