Correct Syntax for ListCompact? [Self-Solved]

Dcoder
22 Jan 2019, 03:37

Anyone know this? The documentation for this function is quite confusing. I want to ListCombine 2 lists but also ListCompact them. I tried:

MyCombinedList = ListCompact(list1, list2)
MyCombinedList = ListCompact(list1 + list2)
MyCombinedList = ListCompact(list1 list2)

...all to no avail. Maybe I have to do:

MyCombinedList = ListCombine(list1, list2)
MyCombinedList = ListCompact(MyCombinedList)

???


Dcoder
22 Jan 2019, 03:42

Ok, after searching the forums like I should have done in the first place, I found the answer:

MyCombinedList = ListCompact(ListCombine(list1, list2))

Duh!