3 ms·
I'm not sure I see the reckless generalisation. I said `+` meant append, not add. We can use addition in the case of integers to serve as `append`, but its a sp
by mjburgess 5y ago
I'm not sure I see the reckless generalisation. I said `+` meant append, not add. We can use addition in the case of integers to serve as `append`, but its a special case of appending where A+B == B+A.
In python, where I take the example, `+` performs that role,
[a() + a() for a in (str, bool, int, list, tuple)]
etc.