Joining Lists

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Joining Lists

Post by acerzw » 02 Jun 2015 16:10

Hi,

What is th easiest way to join to lists, do I have to iterate throught the elements of the first list and individually add them to the second or is there an easier way, probably in front of my face but can't see a prebuilt function/operator.

Rob

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Joining Lists

Post by Martin » 02 Jun 2015 18:50

Hi,

No, there no function for this yet. You have to iterate, about like this for(e in list1) addElement(list2, e);
I'll add a function like join or addAll to the todo list.

Regards,
Martin

User avatar
acerzw
Posts: 39
Joined: 10 May 2015 13:38

Re: Joining Lists

Post by acerzw » 02 Jun 2015 18:57

Thanks for confirming the situation Martin, I shall iterate.

Post Reply