2010å¹´09æ03æ¥05:30 ã«ãã´ãªLightweight LanguagesMath Algorithm - 0ã¨1ã次ã ã¨è¿ãç°¡åãªãä»äº ããã£ã¨ãã 0ã¨1ã次ã è¿ãæ¹æ³ - a2c.get.diary Trueã ã£ããFalseã§ãFalseã ã£ããTrueã«ãããã ãªãããããªãã¨ãããããã§å¿ è¦ã§ããã®çºã®ä¾¿å©ãªãã®ã ããã®ããªãã¨æã£ããã ãã©ç¡ãã½ã Closure æ¬æ¥ã¯ä¸çªãããããªã®ã ã⦠JavaScript ()ãç ©ãããããperlãrubyããã¯èªç¶ã #!/usr/bin/js var flipflop = function(p){ p = !p; return function(){ return p = !p; }; }; var fl = flipflop(); console.log(fl()); console.log(fl()); c
{{#tags}}- {{label}}
{{/tags}}