Forums

List concatenation

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

List concatenation

Postby Charles » Mon May 25, 2009 11:04 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: List concatenation

Postby Charles » Sun May 31, 2009 5:00 pm

"a += b" works now.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 74 guests