On 01/28/2017 11:19 PM, Bahman Movaqar wrote:
> I've been playing around `srfi-41` for an hour now.  It seems to me,
> that regardless of the operations on the stream, the `head` doesn't
> advance.  For example:
> 
>     (define my-stream (list->stream '(0 1 2 3)))
>     (take 2 my-stream)
> 
> At this point I was expecting the stream head to have advanced by 2.
> But this fails:
> 
>     (assert (equal? (stream-car my-stream) 2))

Thanks Peter and Vasilij.  Makes sense now.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to