appends the list rest to the list second

setlink(*psecond,rest);