æ§èã«å±ãã¾ãããã¡ãã£ã¨åã«æµè¡ã£ãæ¬å¼§ã´ã«ã(æ¬å¼§ããªãã¹ã使ããã«éä¹ãè¨ç®ãããã¤)ãgroovyã§ãã£ã¦ã¿ã¾ããã a = args as List a += '1' a.putAt 1, 'x' a -= 'x' s = a as String c = s.chars c.putAt 0, " " minus1 = -1 c.putAt minus1, " " t = c as String n = t as int r = 1..n acc = 1G r.each { acc *= it println it + "! = " + acc } 2åã§ããéä¹ã®å¤ãè¨ç®ããé¨åã¯ãã«ã¼ãï¼for/whileæï¼ã«ãããå帰ããã«ãããæ¬å¼§ä½¿ããã«ã¯æ¸ããªãããããããéçããªï¼ ä½ããã¨ã«ããã å¤ãè¿ãã¡ã½ããå¼ã³åºãã¯ä½¿ããªã å¤ãè¿ãã¦ããããåãåããã¨ããã¨ãããã¬ã
{{#tags}}- {{label}}
{{/tags}}