next up previous contents index
Next: generator Up: Stream Previous: size   Contents   Index


constant


Usage

constant s


Signature

constant: % $\to$ (MachineInteger, Partial T)


Parameter Type Description
s % a stream


Returns

Returns $(-1, {\it failed}\xspace )$ if $s$ is not known to be eventually constant, otherwise returns $(n \ge 0, [t])$ such that $s.k = s.n = t$ for $k \ge n$.



Manuel Bronstein 2004-06-28