6 ms·
> `collect()` doesn't know what type of collection to collect into. Yes, unless there is some other mention of Vec, i.e. it is returned from the function. > T
by nercury 10y ago
> `collect()` doesn't know what type of collection to collect into.
Yes, unless there is some other mention of Vec, i.e. it is returned from the function.
> This is impossible without varargs, no?
Varargs would definitely help, and would allow Rust to borrow more ideas without workarounds. But one can do it manually for each tuple variant.