Community
Participate
Working Groups
collect and reject does not have the correct type calculator and thus something like: var a = 0; (0..3).collect(x| a += x); flags an error for += since x is believed to be an Object (not an Integer) which can be inferred. This is because the collect (and reject) function does not have a correct type calculator.