add a collect method using vararg

@williamboxhall