I have two linked list and I want to Concatenates these two linked lists, placing the elements of the second list after the elements of the first list. For example, if list1={1,2,3} and list2={4,5,6} then calling:
list3 = list1 + list2;
would result in list3={1,2,3,4, 5,6}.
so I want to define operator+ for these linked list
any idea how I can do this?
list3 = list1 + list2;
would result in list3={1,2,3,4, 5,6}.
so I want to define operator+ for these linked list
any idea how I can do this?
Comment