[Cs254f11] Two Questions on sets and lazy infinite functions

Jack Laxson jrl11 at hampshire.edu
Sun Oct 2 14:21:53 EDT 2011


---------- Forwarded message ----------
From: Jack L. <jackjrabbit at gmail.com>
Date: Sun, Oct 2, 2011 at 2:20 PM
Subject: Two Questions on sets and lazy infinite functions
To: cs254f11 <cs254f11 at lists.hampshire.edu>


Infinite lazy repeat of a function that requires arguments: repeatedly lets
you do it with one without arguments, I'd want to step over prime? with a
(range 1 [assumed infinity]). If thats the wrong way to do it maybe I'm
missing a better style.
>> https://gist.github.com/1257722

Second issue is with trying to test if #{\3} is in a set.

>> https://gist.github.com/1257724
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/mailman/private/cs254f11/attachments/20111002/7f835666/attachment.htm>


More information about the Cs254f11 mailing list