Why is the behavior of the Haskell range notation different for floats than for integers and chars? Prelude> [1, 3 .. 10] :: [Int]
I came across an exercise in one of my lectures that left me confused on the output of [2, 2 .. 2]. Why when entering [2, 2 .. 2] it generates an \"infinite\" list with 2\'s.
This question already has answers here: Closed 12 years ago. Possible Duplicate: ASP.NET “special” tags