Haskellã§å¹çã®è¯ãã³ã¼ããæ¸ãããã«ã¯ããã«ä¸è¦ãªãµã³ã¯ãæ½°ãããã¨ãããã¨ãéè¦ã ã¨è¨ããã¦ãã¾ãããããããããããªããµã³ã¯ãå¢ããã¨å¹çãæªããªãã®ã§ããããã Haskellã®ã¡ã¢ãªç¢ºä¿ã¯é«é ã¾ããHaskellã«ããã¦ã¡ã¢ãªã®ç¢ºä¿ã¯ã©ã®ç¨åº¦ã³ã¹ããããããã®ãªã®ã§ããããã次ã®ããã°ã©ã ã使ã£ã¦ç¢ºããã¦ã¿ã¾ãããã {-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC "-ddump-simpl" #-} module Main2 where bench :: Int -> (a -> a) -> a -> a bench n f i = go n i where go 0 !i = i go k !i = go (k-1) (f i) {-# NOINLINE bench #-} main :: IO () main = prin
{{#tags}}- {{label}}
{{/tags}}