On Fri, 08 Dec 2006 05:25:55 -0800, Joel B. Mohler  
<[EMAIL PROTECTED]> wrote:

>
> On Friday 08 December 2006 02:23, [EMAIL PROTECTED] wrote:
>> Integer sequences are the playground that my mind takes recess in during
>> lectures that bore me.  They drew me into math stronger than probably
>> anything else -- so I'd be glad to help.
>
> That's a sentiment I can identify with.
>
>> Here's a few.  They print rather
>> than return a list... but that's easy to fix.
>
> I'm not sure what form William had in mind for these functions but if you
> replace 'print' with 'yield', you can use them as iterators.  That way,
> there's no memory allocation issues with huge lists and they are still  
> very
> easy to use.

I think that's an excellent idea.  Either the functions could be iterators
or just return the n-th element, or return a list, depending on the nature
of the sequence.  Anything but printing would be OK with me.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to