| ▲ | KolmogorovComp 3 hours ago | |
This is correct. But it’s not really surprising, it’s type inference. | ||
| ▲ | gpm 26 minutes ago | parent [-] | |
It isn't really type inference. Each closure gets a unique type. Rather it's an automatic decision of what traits (think roughly "superclasses" I guess if you aren't familiar with traits/typeclasses) to implement for that type. | ||