I believe i did my (re-)search, but found no solution to my problem. I have a list of things, say
list := {{1,2}, {1/2,1/3}, {3,4}}
now i want to replace a single element of my list with elements from a new list, say
replacement := {{4,5}, {6,7}, {1,2,3}}
the function ReplacePart looks sweet, but leaves on level of braces too much (the braces around {4,5}...{1,2,3}):
ReplacePart[list, 3-> replacement]
{{1, 2}, {1/2, 1/3}, {{4, 5}, {6, 7}, {1, 2, 3}}}
Flattening doesnt help - then I get individual elements inserted:
In[221]:= ReplacePart[list, 3 -> Flatten[replacement]]
Out[221]= {{1, 2}, {1/2, 1/3}, {4, 5, 6, 7, 1, 2, 3}}
I was looking for a function to 'unlist' what's around my replacement, but found nothing.
If there is someone around with a solution, you would make a poor newbie learn something for life...
Thank you in advance!