Closed chris-martin closed 4 years ago
A few ideas:
import Data.Time.Calendar main = do putStrLn (show [3 .. 8]) putStrLn (show ['a' .. 'z']) putStrLn (show [Tuesday .. Friday])
$ runhaskell range.hs [3,4,5,6,7,8] "abcdefghijklmnopqrstuvwxyz" [Tuesday,Wednesday,Thursday,Friday]
Might be nice to also show:
Enum
[.. x]
[x ..]
[minBound .. maxBound]
PR: #17
Closed due to merging of PR #17.
A few ideas:
Might be nice to also show:
Enum
[.. x]
and[x ..]
[minBound .. maxBound]
to list all values