CyclicStreamTools(S, ST)¶
stream.spad line 487 [edit on github]
S: Type
ST: LazyStreamAggregate S
This package provides tools for working with cyclic streams.
- computeCycleEntry: (ST, ST) -> ST
computeCycleEntry(x, cycElt)
, where cycElt is a pointer to a node in the cyclic part of the cyclic streamx
, returns a pointer to the first node in the cycle
- computeCycleLength: ST -> NonNegativeInteger
computeCycleLength(s)
returns the length of the cycle of a cyclic streamt
, wheres
is a pointer to a node in the cyclic part oft
.
- cycleElt: ST -> Union(ST, failed)
cycleElt(s)
returns a pointer to a node in the cycle if the streams
is cyclic and returns “failed” ifs
is not cyclic