ä½ã FizzBuzz åé¡ãã¡ãã£ã¨ã ããã¯ã¼ã¢ããããããã®ã« FibBuzz ã¨ãããã®ãããããã§ã0 ãã 100 ã¾ã§ã®æ´æ°ã FizzBuzz ãã代ããã«ãã£ããããæ°ã®åé ã«å¯¾ã㦠FizzBuzz ããåé¡ãªããã§ãã é¢ç½ãããªã®ã§ä¹ ã ã« Control.Arrow ãå¼ã£å¼µãåºãã¦ãã£ã¦ã¿ã¾ããã ã©ã ãå¼ä½¿ãããã¤ã³ãããªã¼ã¹ã¿ã¤ã«ã§æ¸ãã¦ã¾ãããã®è¾ºã¯åºæ¬ã§ããã import Control.Arrow import Data.Function (on) fib = loop (((fst >>> uncurry (on (.) (:))) &&& (snd &&& fst >>> app) >>> app) &&& (snd >>> (snd &&& uncurry (+) >>>) >>> (uncurry (+) &&&) >>> (>>> uncurr
{{#tags}}- {{label}}
{{/tags}}