[plt-scheme] frtime qn - behaviour depending on evt & another behaviour
This looks like a typo:
(define b (collect-b evt 100 (λ(e old) (+ a old))))
It should be (+ e old), right?
N.
2008/7/29 harsha <harsha.v.r at gmail.com>:
> hi,
> i was surprised by how the following program behaved and was
> wondering about what the semantics of a behaviour whose definition
> depends on an event and another behaviour.
>
> (define evt (event-receiver))
> (define a (hold evt 0))
> (define b (collect-b evt 100 (λ(e old) (+ a old))))