I\'m looking for an equivalent of:
for(_ <- 1 to n) some.code()
that would be shortest and most elegant. Isn\'t there in Scala anything si
1 to n foreach { _ => some.code() }