www.cl.ecei.tohoku.ac.jp Rubyã®ç·´ç¿ã®ããã«å§ãã¾ããï¼ 4ç« ããã¯é£ããããªã®ã§3ç« ã¾ã§é å¼µãããï¼ã§ã飽ããããããããï¼ ã³ã¼ããæ¸ãåºç¤ã足ããªãæ°ãããã®ã§ãã£ã¨æ¸ããªãã¨ï¼ å§ããã«ãã£ã¦ï¼ã¨ããããRuby 2.2.3ã®Stringã¯ã©ã¹ã¯ä¸éãç®ãéãã¦ãã¾ããï¼ å ¨ä½çã«æ«å°¾å帰ã§ãªãã¨ããããã¨ãã¦ã¾ãï¼ Rubyã¯æ«å°¾å帰ã®æé©åããªãã£ã¦èãããã§ããã©ããªãã§ãããï¼ Rubyã£ã½ãæ¸ãæ¹ãããããªãã®ã§ï¼Rubocopå çã«åºæ¥ãã ãæãããªãããã«æ¸ãã¦ã¾ãï¼ 00 # 00 æååãåãåãï¼æ«å°¾ããé ã«è¡¨ç¤ºãã class String def my_reverse size = length result = '' while size > 0 size -= 1 result << self[size] end result
{{#tags}}- {{label}}
{{/tags}}