On Thursday, April 17, 2014 10:36:13 AM UTC-5, A. Webb wrote:

> On Wednesday, April 16, 2014 10:35:14 PM UTC-5, Mars0i wrote:
>>
>>
>> But then should realized? be able to deal with a Cons containing a 
>> LazySeq?
>>
>> (Is this an issue worthy of JIRA? I've never submitted there, and am not 
>> sure I know enough to do so.  Willing to try to figure it out.)
>>
>
> No, realized? works as intended on a single object. If you want to know 
> if there is an unrealized portion remaining of a sequence, just roll your 
> own function to step through it, being careful not to force realization of 
> unrealized portions while doing so. Untested example:
>

Very nice--thanks.

But there's still a conflict between the docstrings for iterate and 
realized?, right?  If it's true that iterate "Returns a lazy sequence", 
then it's false that realized? "Returns true if a value has been produced 
for a ... lazy sequence", since it throws an exception on what iteratereturns.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to