Re: [問題] 1-9位數不重複印出來 (Haskell (2))

作者: suhorng ( )   2016-11-28 12:18:08
Haskell 的例子 again
import Data.List
main = readLn >>= \n -> mapM_ putStrLn $ nub (map (nub . show) [1..(10^n-1)])

Links booklink

Contact Us: admin [ a t ] ucptt.com