Section 5.6 An Example: [Streams]? of Primes of the Axiom Book says:
"This is how you use generate to generate an infinite stream of primes."
In FriCAS, the function fricas (1) -> primes := stream(nextPrime,
Type: InfiniteTuple?(Integer)
but the result is an InfiniteTuple?, not a Stream. The domain InfiniteTuple? is not documented in the book. To create a stream one must explicitly write: fricas primes := stream(nextPrime,
Type: Stream(Integer)
or fricas primes := construct stream(nextPrime,
Type: Stream(Integer)
... --oldk1331, Wed, 12 Jul 2017 14:24:44 +0000 reply In ituple.spad, you can see that InfiniteTuple? is represented as Stream. And there is special treatment for InfiniteTuple? in interpreter code. Maybe InfiniteTuple? can be removed, to be investigated.
|