CodeNote
.
net
ABOUT
BLOG
TAGS
Switch to light / dark version
[Ruby] インクリメント(Increment)は"++"ではなく"+=1"
重岡 正
·
Sat, September 24, 2011
Ruby でのインクリメント(Increment)は”++“ではなく”+=1”と自己代入でするみたいです。
PHP でのインクリメント(Increment)
$i = 0; $i++;
Ruby でのインクリメント(Increment)
i = 0 i += 1
以上です。