Pure vs. impure iterators in Go (jub0bs.com)
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 01 Jun 01:34
https://inks.tedunangst.com/l/5247

Because iterators are so powerful, they’re likely to mushroom in libraries even beyond Go’s standard library. Therefore, to forestall any confusion in the discourse about iterators, the terminology surrounding them should be as precise as possible.

This passage of the documentation seemingly divides iterators into two categories. I’ll attempt to elucidate them through a couple of examples.

#go #programming

#go #inks #programming

threaded - newest