I am not sure whether I think this is the desireable behavior. Maybe this should instead recycle the 10:11 into a list(10:11, 10:11) and then perform the assignment. This would then result in a list(10:11, 10:11, 3) instead of list(10, 11, 3) as above.
In R, assigining a vector to a list-slice vectorizes:
Created on 2024-10-05 with reprex v2.1.1
I am not sure whether I think this is the desireable behavior. Maybe this should instead recycle the
10:11
into alist(10:11, 10:11)
and then perform the assignment. This would then result in alist(10:11, 10:11, 3)
instead oflist(10, 11, 3)
as above.