I have a list L = [1,2,3].
L = [1,2,3].
I perform the following on L:
lists:sublist(L,2) ++ [10] ++ lists:nthtail(3,L).
Instead of storing