al = ['a'..'z'] foo n = iterate (flip map al . flip (:) =<<) [[]] !! n main = print . length . foo $ 6
Standard input is empty
308915776
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!