vector to list in apply.