concept sequence manipulation in category java
appears as: Sequence mipulation

This is an excerpt from Manning's book JavaFX in Action.
Listing 2.25. Sequence manipulation: insert
var seq1 = [1..5]; insert 6 into seq1; println("Insert1: {seq1.toString()}"); insert 0 before seq1[0]; println("Insert2: {seq1.toString()}"); insert 99 after seq1[2]; println("Insert3: {seq1.toString()}"); Insert1: [ 1, 2, 3, 4, 5, 6 ] Insert2: [ 0, 1, 2, 3, 4, 5, 6 ] Insert3: [ 0, 1, 2, 99, 3, 4, 5, 6 ]