4 ms·
> So these functions get the same name then: > def following_index(i: Int) = i + 1 > def item_count_with_free_gift(n: Int) = i + 1 They'd better no
by JadeNB 6y ago
> So these functions get the same name then:
> def following_index(i: Int) = i + 1
> def item_count_with_free_gift(n: Int) = i + 1
They'd better not get the same name, since one increments its argument and the other one increments an auxiliary variable ….
- twic 6y agoI am very good professional programmer A++++.