Mega Code Archive
Categories
/
Ruby
/
Range
Get the min and max with minmax
(1..100).minmax # => [1,100] min, max as numbers