Sort by

recency

|

198 Discussions

|

  • + 0 comments

    scala

    object Solution extends App {
        import scala.io.StdIn.readInt
        def f(num:Int) : List[Int] = {
            val list = List.range(0, num)
            list
        }
    
        println(f(readInt))
    }
    
  • + 0 comments

    sounds Intresting, i am wondering can we use this concept in my site on my wordpress site? for either better structure or engagement.

  • + 0 comments

    Scala: val lst: List[Int] = (1 to num).toList

  • + 0 comments

    An array of ( N ) elements is a data structure that holds a fixed-size sequential collection of elements of the same type. Lucky7 login

  • + 0 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)) }