Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

diff between .. and ... in ruby

In ruby 1...5 gives you a range which doesn't include 5 
whereas 1..5 gives you a range which does include 5
 
PREVIOUS NEXT
Tagged: #diff #ruby
ADD COMMENT
Topic
Name
9+7 =