I can't figure out how to do the following.
list = {{1,2,3}, {4,5,6},{ 7,8,9}}
I want to add a number to each sublist For example add 10 so it looks like:
newlist = {{1,2,3,10}, {4,5,6,10}, {7,8,9,10}}
I have looked Insert, Map etc but can't seem to grasp how to do it. In actuality I will want to add a unique ID (ie each unique ID is different like a primary key) to each sublist so it would be list = {{1,2,3,unique ID},{4,5,6, unique ID},{7,8,9, unique ID}} The unique ID would be most likely by a function I suppose.
Thanks!