4 ms·
Does go have a generic iterator interface? When I looked through the docs range seemed the closest, but all the examples seemed tied to array or an array of th
by rogerbinns 13y ago
Does go have a generic iterator interface? When I looked through the docs range seemed the closest, but all the examples seemed tied to array or an array of the keys of a dictionary.
For example Python has a iterator protocol and language support, and Java has Iterator/Iterable with language support.