Sather Home Page

Section 8.12.1.9:
$SEQUENCERS

for!( once cnt : NTP ) : NTP ; -- This iter feature yields cnt successive values starting with self. -- It is an error if an attempt is made to yield a value larger than maxval; -- an exception shall be raised if this should occur. up! : NTP ; -- This iter feature yields successive numbers from self upwards. It is -- an error if an attempt is made to yield a value larger than maxval; -- an exception shall be raised if this should occur. upto!( once limit : NTP ) : NTP ; -- This iter feature yields successive numbers from self up to the given -- limit. downto!( once limit : NTP ) : NTP ; -- This iter feature yields successively smaller numbers from self down -- to the given limit. step!( once cnt : CARD, once interval : INT ) : NTP ; -- This iter feature yields cnt numbers starting with the value of self, -- each differing from the preceding value by the given interval. stepto!( once finish : NTP, once interval : INT ) : NTP ; -- This iter feature yields successive values from self up to finish, -- each value being the value of the preceding yield offset by the given -- interval.
Language Index Library Index Numeric Index
Comments or enquiries should be made to Keith Hopper.
Page last modified: Wednesday, 21 February 2001.
Produced with Amaya