Type mismatch when building '{0}': body of the for loop must be lambda taking integer as an argument. Expected '{1}', but ...