Use a transient vector in split function