Scala - For each loop
Loop over all elements in list.
Loop over all elements in list.
{{list}}.foreach { item =>
{{body}}
}
last update:
{{list}}.iterator.foreach { item =>
{{body}}
}
last update:
for (item <- {{list}}) {
{{body}}
}
last update: