Masha,

Thanks for sharing your code. I'm checking it out.

> Isn't 5 functions too much for iterable protocol ?

It might be. :-) What I posted is just a "sketch". Here's the iterable
protocol again:

(define-record-type++ iterable-protocol
  (fields iterator empty? next rest new-from-list))

For lists and ports, the 'iterator' and 'new-from-list' aren't needed.
They remain from an earlier experiment where I created iterators over
vectors (and other indexable objects).

Ed


Reply via email to