3 ms·
Most languages use some sort of interface whereby if you implement certain methods for a type then that type can be iterated over using a for loop.
by Sean1708 10y ago
Most languages use some sort of interface whereby if you implement certain methods for a type then that type can be iterated over using a for loop.