Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
assign greater of two ints?
Earle Clubb
6/22/2007 7:21:00 PM
Is there a more concise way to write this?
a = 5
b = "test123"
if a < b.length
a = b.length
end
--or--
a = b.length if a < b.length
Earle
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
assign greater of two ints?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password