(thanks to id:koyachiãdel.icio.us/rtk2106) OOPã¨FPã¨ãé¢æ°ããªãã¸ã§ã¯ããã¯ãã¼ã¸ã£ã®ä½¿ãåãã«ã¤ãã¦èãã¾ãã é¢æ°åãè¯ãã®ãããªãã¸ã§ã¯ãæåãè¯ãã®ããç¥ãããã¨æã£ã¦ãã¾ãããè²ã
ãªãã¼ã¸ãèªã¿ãç¾æç¹ã§ä¸å¿ã®çããå¾ã¾ããã ã«ã¦ã³ã¿ãä¾ã«ãã¦ãé¢æ°ãã¹ã³ã¼ãããªãã¸ã§ã¯ããã¯ãã¼ã¸ã£ã®é ã«è¦ã¦è¡ãã¾ããé¢æ°é¢æ°ã¯å¦çã§ããå
¥åã¨åºåãããã¾ããé¢æ°åããã°ã©ãã³ã°ã§ã¯ãé¢æ°å士ã®å
¥åã¨åºåãé£çµãããã°ã©ã ãæ§æããã¾ãã var current = 0; function next(v){ return v + 1 } function previous(v){ return v - 1 } ok( 1 == ( current = next(current) ) ); ok( 2 == ( current = next(cu
{{#tags}}- {{label}}
{{/tags}}