Create a range [from, to[.

The syntax [from..to[ is equivalent.

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

Property definitions

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