Summing numbers
Summing numbers
Build a list with the to method:
1.to(10)
// res0: Range.Inclusive = Range.Inclusive(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Build a list with the until method:
1.until(10)
// res1: Range = Range(1, 2, 3, 4, 5, 6, 7, 8, 9)
Use map to transform the list.
