ninetyninenine
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
60 ms·
- 841.▲
- 842.▲
- 843.▲
- 844.▲
- 845.▲
- 846.▲
I have:
A = {a, b, c, d, e} I want to write:
B = {a, b, c, d, e, f, g} But I don't want to write duplicate code So I write: B = B(A) = {A, e, f, g}
aka I use inheritance. Are there easier ways? No. Inheritance is the mo - 847.▲
- 848.▲
- 849.▲
- 850.▲
- 851.▲
- 852.▲
- 853.▲
- 854.▲
- 855.▲
- 856.▲
- 857.▲
- 858.▲
- 859.▲
- 860.▲
- 861.▲
- 862.▲
- 863.▲
- 864.▲
- 865.▲
- 866.▲
- 867.▲
- 868.▲
- 869.▲
- 870.▲
More ›