Page 1 of 1

List concatenation

PostPosted: Mon May 25, 2009 11:04 am
by Charles
I've added support for "a + b" for lists.
a = [1, 2]
b = [3, 4]
assert a + b == [1, 2, 3, 4]
This will work for anything IList<of T>. The two operands are left unmodified and a new list instance is created using a's type.

Haven't gotten to "a += b" yet.

Re: List concatenation

PostPosted: Sun May 31, 2009 5:00 pm
by Charles
"a += b" works now.