main :: IO ()main = do print [1..5] -- Intervalo simple print [2,4..10] -- Intervalo con paso 2 print [10,8..0] -- Intervalo decreciente print (take 10 [1..]) -- Lista infinita de naturales y subconjunto print ['a'..'f'] -- Intervalo con caracteres
Standard input is empty
[1,2,3,4,5] [2,4,6,8,10] [10,8,6,4,2,0] [1,2,3,4,5,6,7,8,9,10] "abcdef"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!