Ruby/Range/minmax
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
Get the min and max with minmax
(1..100).minmax # => [1,100] min, max as numbers
Личные инструменты |
ПросмотрыRuby/Range/minmaxМатериал из Wiki.crossplatform.ruВерсия от 17:10, 26 мая 2010; (Обсуждение)
Get the min and max with minmax(1..100).minmax # => [1,100] min, max as numbers |