3 ms·I would think iterators are exactly this. And they exist in almost every language.by demarq 1y agoI would think iterators are exactly this. And they exist in almost every language.