Ruby/Range/to Set
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
Convert range to set
require "set" (1..3).to_set # => #<Set: {1, 2, 3}>
Личные инструменты |
ПросмотрыRuby/Range/to SetМатериал из Wiki.crossplatform.ruВерсия от 17:10, 26 мая 2010; (Обсуждение)
Convert range to setrequire "set" (1..3).to_set # => #<Set: {1, 2, 3}> |