import Control.Arrowimport Control.Monadimport Data.List (group) main :: IO ()main = mapM_ putStrLn . take 11 . iterate f $ "1" f :: String -> Stringf = group >=> length &&& head >>> show *** (:[]) >>> uncurry (++)
Standard input is empty
1 11 21 1211 111221 312211 13112221 1113213211 31131211131221 13211311123113112211 11131221133112132113212221
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!