T
Teodor Carstea
what is Ruby's style of increment/decrement?
I mean like in C++
someVar++
or someVar--
I mean like in C++
someVar++
or someVar--
what is Ruby's style of increment/decrement?
I mean like in C++
someVar++
or someVar--
what is Ruby's style of increment/decrement?
=20
I mean like in C++
=20
someVar++
or someVar--
2009/12/4 Mike Stok said:Take a look at http://ruby-doc.org/docs/Newcomers/ruby.html#operators which includes "To increment a number, simply write x += 1T."
someVar += 1
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.