3 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
by twic 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
- roflc0ptic 6y agoIt would be easy enough to have multiple aliases for the same function. They can be named whatever you want, they just have the same identity
- 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++++.