Ketil Z. Malde
18 Feb 2002 10:17:46 +0100
I'm a bit puzzled by this observatio that I made. I have a function
that, pseudocoded, lookes somewhat like
f i as bs cs = ins i (f (i+1) as) ++ ins i (f (i+1) bs) ++ ins i (f (i+1) cs)
where ins i = manipulates the first element of the list
Now, without the ins'es, the function appears to be lazy, i.e I can
"take" a part of it without evalutating the rest. With the ins'es,
the whole thing seems to be calculated as soon as I touch it.
Is this obvious? Or is my observation wrong?
If I haven't seen further, it is by standing in the footprints of giants