Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
Google ã®ã¦ã§ããã°å ¬éãã¼ã«ã使ã£ã¦ãããã¹ããåçãåç»ãå ±æã§ãã¾ãã
æè¿ãJavaScriptã«æ¹ãããçç±ã¯ãé¢æ°åè¨èªã®ç¹å¾´ãæã¤ã¨ããã«åå ããããããªæ°ããã¦ãã¾ãã Lispãå¾æã¨ãã¦ãã人ã¯ãLispè³ãªãèãæ¹ãããã¨ã®ãã¨ã§ãã èå³ã®æºæ³ã«åºä¼ãããã«ãLispè³ãè¦ãã¦ã¿ããã¨æãããèªã¿ãªãããJavaScriptã§Lispè³ãªFizzBuzz*1ãæ¸ãã¦ã¿ã¾ããã ãææ¬ (for-each print (map (lambda (x) (cond ((= (modulo x 15) 0) "FizzBuzz") ((= (modulo x 5) 0) "Buzz") ((= (modulo x 3) 0) "Fizz") (else x))) (iota 100 1))) ãããèªãã ãã§ã¯ãæ£ç´ä½ããã£ã¦ãããããã¾ããã次ã«ã解説ãèªã¿ãªããæ¸ãã¦ã¿ã¾ãã ã¾ãã¯ãªã¹ããä½ã ãã¨ãããã1ãã100ã¾ã§ã®ãªã¹ããä½ãã°è¯ã
-- 追è¨@2012-08-08 09:20JST -- ãã®éããªãè¨ããããã®åè·å ´(æ´¾é£å )ã§ããã°ã©ãã³ã°ãã¹ãããã£ãã®ã ãã©ãå¼ç¤¾ç¤¾å¡ã®1/3ãFizzBuzz解ããªãã£ããã ⦠â papamitraãã (@papamitra) 8æ 6, 2012 ããèªãã§å·¥ï½´ï½´ï½ªï½ª(´дï½)ェェエエ工ã¨ãªããæ¸ããã -- 追è¨ããã¾ã§@2012-08-08 09:20JST -- ãããã¯ããFizzBuzzæ¸ããªã奴m9(^Ð^)ï¾ï¾ï½·ï¾ï½¬ï½°ãã®ãã«ããã«ãæã çµè«ã ããæ¸ãã è¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããè¦ããªããããããã¦ç¥ããªãããã ãã¦ãã¾ãã¯ãã®åé¡è§£ããããå¶éæé5åã ã¿ã¤ãã«: Ants åé¡
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}