How to intercept the first value of a generator and transparently yield from the rest

前端 未结 0 1523
清歌不尽
清歌不尽 2020-12-19 18:52

How do I intercept the first yielded value of a subgenerator but delegate the rest of the iteration to the latter using yield from?

For example, suppose

相关标签:
回答
  • 消灭零回复
提交回复
热议问题