undigits :: [Int] -> Intundigits = foldl (\a x -> a * 10 + x) 0 main :: IO ()main = print $ undigits [1,4,2,7,9,3,4,6]
Standard input is empty
14279346
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!