Skip to content

Commit

Permalink
add some samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ramirez committed Apr 6, 2012
1 parent 4d3881b commit 5dcb4a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arg.scala
@@ -0,0 +1,15 @@

args.foreach(arg => if(arg=="puto") println(arg) else println("no puto"))
val array = (1).to(10)
println(array.length)

array foreach(numero => println(numero))
for( i <- 5 to 50) {
println(i)
}
for( i <- (1).to(5)) {
println(i)
}

println("lo ultimno")
1 to 3 foreach (numero => println("que groso"))

0 comments on commit 5dcb4a2

Please sign in to comment.