LoginSignup
3
3

More than 5 years have passed since last update.

ズンドコキヨシ with Haskell

Last updated at Posted at 2016-03-20

なんで流行ってるのかよくわからんし文系情弱力を発揮して完全に乗り遅れてる気がするものの

zun.hs
import System.Random

zun n (x:xs)
  | not x     = putStr "ズン" >> zun (n+1) xs
  | n < 4     = putStr "ドコ" >> zun 0 xs
  | otherwise = putStr "ドコ" >> putStrLn "キ・ヨ・シ!"

main = zun 0 . randoms =<< getStdGen

でいいのでは? いいんだよね?

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3