Lets work on Scala List
Create a List
Method 1:
Method 2:
Create a List
Method 1:
scala> val itemList = List(3,6,9)
Method 2:
scala> val itemList = List.range(1,6) x: List[Int] = List(1, 2, 3, 4, 5)
No comments:
Post a Comment