mercredi 24 avril 2019

Ruby. (condition) ? return : next .Returning error

(1<2) ? return : next

dos.rb: dos.rb:74: Invalid next (SyntaxError)

What is the correct way to tell ruby to 'continue' in this context .

if 1 is less than 2, leave the function, else keep going

Aucun commentaire:

Enregistrer un commentaire