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