Just to clarify, are you wondering why your output is not [ 1, 2, 3, 4, 5 ] or why it is not [ 1, 2, 3, 4, 5, 6 ]?
[ 1, 2, 3, 4, 5 ]
[ 1, 2, 3, 4, 5, 6 ]