Ilya Zakharevich on Thu, 12 Dec 2002 13:20:07 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: new functions

On Wed, Dec 11, 2002 at 10:17:55PM +0100, Karim BELABAS wrote:
> It could be useful to also have an actual function generating a list of
> partitions [ already there, static to galois.c ], and a forpart() iterator.
> We already have numdiv [ numbdiv in library mode! ] / divisors / fordiv

Better add a new type (lazy array) using the API I implemented.  Then
all the questions are answered uniformly, like

 P = primes(1e11, 2e11)
 nPrimes = length(P)
 foreach(p=P, print(p))