Thursday, 9 October 2014

Range in Ruby

Range represents values(usually integers) between two end points
e.g.
  1..3      # All x where 1 <= x <= 3
  1...3     # All x where 1 <= x < 3

No comments:

Post a Comment