[READ-ONLY] Mirror of https://github.com/shuuji3/normal-haskell-programming-book. Codes for『ふつうのHaskellプログラミング』http://www.loveruby.net/ja/stdhaskell/
0

Configure Feed

Select the types of activity you want to include in your feed.

create uniq.hs and modify numbers.txt for uniq & sort

+12
+7
numbers.txt
··· 1 1 1 one 2 + 1 one 3 + 1 one 4 + 2 two 5 + 2 two 2 6 2 two 3 7 3 three 4 8 4 four ··· 11 15 11 eleven 12 16 12 twelve 13 17 13 thirteen 18 + 1 one 19 + 1 one 20 + 1 one
+5
uniq.hs
··· 1 + import Data.List 2 + 3 + main :: IO () 4 + main = do cs <- getContents 5 + putStr $ unlines $ map head $ group $ lines cs