Page 1 of 1
How to append a List with another List?
Posted: 09 Sep 2015 02:04
by natong
Code: Select all
list1 = newList(1, 2, 3);
list2 = newList(11, 22, 33);
list3 = newList();
for (x in list1)
{
addElement(list3, x);
}
for (x in list2)
{
addElement(list3, x);
}
Is there an easy way to append a List with another List (combine List) ?
Re: How to append a List with another List?
Posted: 09 Sep 2015 19:16
by Martin
Hi,
Function addAllElements(list3, list1); should work.
Regards,
Martin
Re: How to append a List with another List?
Posted: 10 Sep 2015 03:30
by MURTUMA
I'm only getting complaint about unknown function name.
Re: How to append a List with another List?
Posted: 10 Sep 2015 03:54
by natong
MURTUMA wrote:I'm only getting complaint about unknown function name.
1.29.0-dev (2015-08-28)
[*] new script functions addAllElements, removeDuplicateElements and addAllMapEntries added
I am so excite waiting the final version.
Re: How to append a List with another List?
Posted: 10 Sep 2015 09:31
by MURTUMA
So it works on the eap build, but not yet on the official release? Thanks for clarification.
Re: How to append a List with another List?
Posted: 11 Sep 2015 17:51
by Martin
Sorry, missed that this function was added in the EAP of 1.29 so you still have to loop on 1.28.