JavaFX introduces a new data type called a sequence. A sequence is an unordered list of objects, similar to an array.
Declaring Sequences
A sequence is declared as comma delimited list, or range surrounded by square brackets [ ].
var num1 = [1, 2, 3, 4, 5];
var num2 = ["one", "two", "three", "four", "five"];
var num1 = [1..5] //Inclusive range [1, 2, 3, 4, 5]
var num2 = [1..<5] //Exclusive range [1, 2, 3, 4]