August 27, 2024
P22 - Create a list containing all integers within a given range.
Example:
scala
scala> range(4, 9)
res0: List[Int] = List(4, 5, 6, 7, 8, 9)
August 27, 2024
Example:
scala
scala> range(4, 9)
res0: List[Int] = List(4, 5, 6, 7, 8, 9)
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds.