3 ms·
> When using collect the type definition is not necessary, as long as the function contains enough hints to infer it. Absolutely, rusc can also often detect t
by iudqnolq 6y ago
> When using collect the type definition is not necessary, as long as the function contains enough hints to infer it.
Absolutely, rusc can also often detect the type the collect needs if you do a few simple things to the return value and then return it from a function.
- mrmagoo17 6y agoHey Great comments! Thanks a lot. They certainly help to get a better understanding of how the type system actually work under the hood :)