add feature: destructuring vector function