class INT_STREAM < $SUCC_STREAM{INT}
****
Yield a stream of successive integers


Flattened version is here

Ancestors
$SUCC_STREAM{_}



Public


Features
create(start_val: INT): SAME
**** Return a new integer stream whose next yielded value will be "start_val"
next: INT
**** Yield the next integer in this stream Wrap around is not permitted in this kind of integer stream

Iters
next!: INT
**** Keep yielding successive integers. Will quit at maxint - 1


Private

attr val: INT;
attr val: INT;

The Sather Home Page