å°ä½ãforæã使ããªãã§Haskellã§fizzbuzzãæ¸ãã¦ã¿ã
é 延è©ä¾¡ãã³ã¶ã¤ã½(^o^)丿
fizz = cycle ["","","fizz"] buzz = cycle ["","","","","buzz"] fizzbuzz = zipWith fb [1..100] $ zipWith (++) fizz buzz where fb n a | a == "" = show n | otherwise = a
cycleã¯å¾ªç°ãªã¹ããä½ãé¢æ°ãªã®ã§ãGHCiã§ãªã«ããªã試ãã¨ãã£ããæ ã¦ãã