return_sum_diff <- function(a,b){return(list(a+b,a-b))}
list[t1,t2] = return_sum_diff(1,2)
It fails with the error
Error in list[t1, t2] <- return_sum_diff(2, 2) : object 't1' not found
I was trying to implement the solution here for returning multiple arguments.