|
|
last edited 7 years ago by oldk1331 |
1 2 3 | ||
Editor: oldk1331
Time: 2017/07/12 14:24:44 GMT+0 |
||
Note: |
added:
From oldk1331 Wed Jul 12 14:24:44 +0000 2017
From: oldk1331
Date: Wed, 12 Jul 2017 14:24:44 +0000
Subject:
Message-ID: <20170712142444+0000@axiom-wiki.newsynthesis.org>
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.
of the Axiom Book says:
"This is how you use generate to generate an infinite stream of primes."
In FriCAS, the function generate
has been renamed to stream
.
(1) -> primes := stream(nextPrime,2)
(1) |
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:
primes := stream(nextPrime,2)$Stream Integer
(2) |
or
primes := construct stream(nextPrime,2)
(3) |