Even if we interpreted "lazy sequence" so that a Cons containing a LazySeq would count
as a lazy sequence, making the docstring for iterate correct, the
docstring for realized? would be wrong.
Thanks for the JIRA reference. That
issue was resolved, I gather because it only concerned the return type
of iterate itself.
Mikera wrote:
"The difference is that the former ... probably performs
slightly better in some circumstances, and since you already have x as a
value it probably makes sense to do this eagerly since no arbitrary
computation is being done (f doesn't need to be called yet in either
case)."
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.)