Ruby/Statement/Until as modifier
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
use while and until in a single line setting, as with if and unless:
i = 1 i = i * 2 until i > 1000 puts i
Личные инструменты |
ПросмотрыRuby/Statement/Until as modifierМатериал из Wiki.crossplatform.ruВерсия от 17:10, 26 мая 2010; (Обсуждение)
use while and until in a single line setting, as with if and unless:i = 1 i = i * 2 until i > 1000 puts i |