Range notation is a shorthand used in Haskell for specifying a list containing a sequence of integers. For example, [1..10] means the set of integers [1,2,3,4,5,6,7,8,9,10]
Code Result
---- ------
[1..10] [1,2,3,4,5,6,7,8,9,10]
[2,4..10] [2,4,6,8,10]
[5,4..1] [5,4,3,2,1]
[1,3..10] [1,3,5,7,9]