Last active
March 12, 2016 14:54
-
-
Save kei-q/30b209265510189ff777 to your computer and use it in GitHub Desktop.
ズンドコ エラー処理とか全然してない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Random | |
main = getStdGen >>= putStrLn . mconcat . go 0 . randomRs (0,1) | |
go n (1:_) | 4<=n = ["ドコキ・ヨ・シ!"] | |
go n (x:xs) = ["ドコ","ズン"]!!x : go ((n+1)*x) xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment