Create a range [from, to].

The syntax [from..to] is equivalent.

var a = [10..15]
var b = new Range[Int] (10,15)
assert a == b
assert a.to_a == [10, 11, 12, 13, 14, 15]

Property definitions

core $ Range :: defaultinit
	# Create a range [`from`, `to`].
	# The syntax `[from..to]` is equivalent.
	#
	#     var a = [10..15]
	#     var b = new Range[Int] (10,15)
	#     assert a == b
	#     assert a.to_a == [10, 11, 12, 13, 14, 15]
	init(from: E, to: E) is old_style_init do
		first = from
		last = to
		after = to.successor(1)
	end
lib/core/collection/range.nit:81,2--92,4