chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Trying to understand srfi-41 (streams)


From: Vasilij Schneidermann
Subject: Re: [Chicken-users] Trying to understand srfi-41 (streams)
Date: Sat, 28 Jan 2017 23:35:36 +0100
User-agent: Mutt/1.7.2 (2016-11-26)

Hello Bahman,

> And of course, upon further investigation, the head hadn't moved an inch
> after `take` or `car`.  What am I missing?

looks to me as if the interface is purely functional.  (stream-car
(stream-drop 2 my-stream)) evaluates to 2.  The original SRFI page shows
a few examples with stream-let and stream-fold for processing a stream
by looking at its car and proceeding on its cdr.

Cheers
Vasilij



reply via email to

[Prev in Thread] Current Thread [Next in Thread]