As the title suggest, I’m looking for a type that I can use in for loops.
Iterable and Iterator don’t do the job.
Let’s say I have an array and a map and I want to loop inside both.
Which type can I use for that please ? A type that says “Will be used in a for loop”
var mapIterable:Iterable<String> = ["a" => "b"];
var arrayIterable:Iterable<String> = ["a"];
var mapIterator:Iterator<String> = ["a" => "b"].iterator();
var arrayIterator:Iterator<String> = ["a"].iterator();