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)
Be first to comment
Leave a reply