extend split-at for lists