More idiomatic implementation of 'vectorOf'