+ 15
[Solved] [Ruby challenge] Why the out is -101?
I did not understood question and the output has complete blown đł my mind. Not able to figure out why output is -101? đ€ Please help for better understanding! https://www.sololearn.com/post/805445/?ref=app
2 Answers
+ 4
Thank you XXX for the link you shared! Sure, he helped understanding operators better. đ
+ 1
The <=> operator is known as the spaceship operator. Just read the top answer to the mentioned question and you'll understand why
https://stackoverflow.com/questions/827649/what-is-the-ruby-spaceship-operator