On Wednesday, 19 February 2014 at 14:02:38 UTC, Bienlein wrote:
Then how can you add a sum method to a parameterized type if it only works for numbers?
As far as I understand it will work on anything that has binary operator "+" defined.
On Wednesday, 19 February 2014 at 14:02:38 UTC, Bienlein wrote:
Then how can you add a sum method to a parameterized type if it only works for numbers?
As far as I understand it will work on anything that has binary operator "+" defined.