The following Java code is a very simple piece of code, but what are the equivalent constructs in Scala?
for (int i=10; i> 0; i-=2) {
System.out.println(i);
}
The following Java code is a very simple piece of code, but what are the equivalent constructs in Scala?
for (int i=10; i> 0; i-=2) {
System.out.println(i);
}