loops
for( var x <- Range ){
statement(s);
}
for( var a <- 1 to 10){
println( "Value of a: " + a );
}Ranges
i to j // includes j
i until j //excludes jfor( a <- 1 to 3; b <- 1 to 3){
println( "Value of a: " + a );
println( "Value of b: " + b );
}Containers
With Filters/Guards
With Yield
Last updated