You are viewing a single comment's thread. Return to all comments →
object Solution extends App {
import scala.io._
val readInt = StdIn.readInt()
def f(num:Int) : List[Int] = {
val list = List.range(0,num)
return list
} println(f(readInt)) }
Seems like cookies are disabled on this browser, please enable them to open this website
Array Of N Elements
You are viewing a single comment's thread. Return to all comments →
object Solution extends App {
import scala.io._
val readInt = StdIn.readInt()
def f(num:Int) : List[Int] = {
val list = List.range(0,num)
return list
} println(f(readInt)) }