[heresy-devel] lazy-listp?

Robin Lee Powell rlpowell at digitalkingdom.org
Thu Sep 4 05:25:04 UTC 2008


I was thinking one of each:

(defun listp/ (list)
  (typecase list
    (lazy-list-list-based t)
    (lazy-list-pair-based t)
    (lazy-list t)
    (list t)
    (t nil)))

(defun lazy-listp (list)
  (typecase list
    (lazy-list-list-based t)
    (lazy-list-pair-based t)
    (lazy-list t)
    (t nil)))

BTW, the version you gave me seems to be quite a bit different (as
judged by diff -w -r) than the version currently on sourceforge;
which one's more recent?

-Robin

On Wed, Sep 03, 2008 at 08:44:16PM -0500, Matt Lamari wrote:
> I am inclined toward listp/ - and have it trigger off of listp AND
> lazy-lists.
>
> (Given that almost all the other calls will accept sequences and
> lazy-lists)
>
> Sound good?
>
>
> Robin Lee Powell wrote:
>> Does the Heresy library export any way to test if something is a
>> lazy list?  If not, could it?
>>
>> -Robin
>>
>>   
>

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/



More information about the heresy-devel mailing list