Jan-12-2020, 07:30 AM
The list
x
is extended by its ks first elements for k in 1, 2, 3, …. Thus x
is extended by []
, then by [2]
, then by [2, 4]
. That's why 2 is appended twice.