First day and first attempt at using Scala - so go easy on me! I\'m trying to rewrite some old Java code I have which is simply a function which takes two numbers and prints
object Test extends App{
def decrement(start: Int, finish: Int,dec :Int) = {
for (i <- Range(start,finish,dec)) {
println("Current value (decreasing from "+start+" to "+finish+") is "+i)
}
}
decrement(5,0,-1)
}