Ruby 2.7 adds Beginless Range

27-Aug-2020 1722
This blog is part of our Ruby 2.7 series. Ruby 2.7.0 was released on Dec 25, 2019.Ruby 2.7 added support for Beginless Range which makes the start of range an optional parameter.(..100) is a Beginless Range and it is equivalent to (nil..100).Let’s see how Beginless Range could be used.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle