Email list hosting service & mailing list manager

generator-find: Bug in sample implementation and omission in text Marc Nieper-Wißkirchen (28 Aug 2020 17:38 UTC)
Re: generator-find: Bug in sample implementation and omission in text Marc Nieper-Wißkirchen (14 Sep 2020 07:14 UTC)
Re: generator-find: Bug in sample implementation and omission in text Marc Nieper-Wißkirchen (14 Sep 2020 09:16 UTC)
Re: generator-find: Bug in sample implementation and omission in text Marc Nieper-Wißkirchen (14 Sep 2020 14:31 UTC)

Re: generator-find: Bug in sample implementation and omission in text Marc Nieper-Wißkirchen 14 Sep 2020 09:15 UTC

Am Mo., 14. Sept. 2020 um 11:06 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:
>
> I sent PR for the sample implementation.
> https://github.com/scheme-requests-for-implementation/srfi-158/pull/7

Thanks.

> Not sure I understand the second point.  In what occasion the state of generator-find gets ambiguous?

In general, the generator won't be exhausted, so, if I understand the
spec correctly, it is in an undefined state after apply
generator-find.

That said, it will be much more helpful if the spec said that after
generator-find, the generator is in a state so that a subsequent call
to generator-find will find the next element satisfying the predicate.
The obvious implementation of generator-find does this.

Marc