[Aldor-l] question about set! in streams / even shorter

Martin Rubey martin.rubey at univie.ac.at
Thu Aug 24 14:56:25 EDT 2006


Finally, I think I have the ultimate way to formulate my question:

For a Stream, why does set! compute the element I want to modify destructively?

Suppose I have a stream of the form s := stream(0, f) and I say

set!(s, 0, 1783);

why on earth is f(0) computed? Is there a way around that? Unfortunately, the
stream is already given. It is not an option to define it differently in the
first place.

Martin




More information about the Aldor-l mailing list