Haskell ranges and floats
The syntax [e1, e2 .. e3] is really syntactic sugar for enumFromThenTo e1 e2 e3, which is a function in the Enum typeclass. The Haskell standard defines its semantics as follows: For the types Int and Integer, the enumeration functions have the following meaning: The sequence enumFrom e1 is the list [e1,e1 + 1,e1 + … Read more