ã¡ãã£ã¨ããã³ã¼ãã®æ¸ãæ¹ã§ããã©ã¼ãã³ã¹ãå¤ãããã¨ãããã¾ãããªã¼ãããªãã£ãéè¦ããåãããããã°å°æå ã®ãã¯ããã¯ã«æ ãããç¥ããªãã®ã§ããããªã¼ãããªãã£ãç¶æããªããã¡ããã¨ããããã©ã¼ãã³ã¹ãåºãããã«ãããã¯ããã¯ãç¥ããã¨ã¯å¤§äºãªãã¨ã ã¨æãã®ã§ãã çµæ§éãããã§ããªã¼ ã¨ããããã§ããããªãã¯ããã¯ãã¾ã¨ããã¹ã©ã¤ããWriting Fast Rubyãè¦ã¦ãã¦åèã«ãªã£ãã®ã§ã¡ã¢ã ãã¨ãã°å¼æ°ã«&blockãã¨ã£ã¦callããããããyieldã®æ¹ã5åéããã¨ãã def slow(&block) block.call end def fast yield end mapã«ãããã¯ã渡ãããããã·ã³ãã«ã渡ãæ¹ã20%éããã¨ã (1..100).map {|i| i.to_s} (1..100).map(&:to_s) mapãã¦ããflattenãå¼ã³åºãã
{{#tags}}- {{label}}
{{/tags}}