Skip to content

cotrForInLoop

Iterates over an iterable object

Aliases:

  • cotrForInLoop
  • forIn

cpp

for (auto item : iterable) {
// Your code here
}

dart

for (var item in iterable) {
// Your code here
}

kotlin

for (item in iterable) {
// Your code here
}

python

for item in iterable:
# Your code here

ruby

iterable.each do |item|
# Your code here
end

swift

for item in iterable {
// Your code here
}