Quantcast
Channel: Cadence Community
Viewing all articles
Browse latest Browse all 3331

Fastest way to merge two lists without duplicates

$
0
0

When developing SKILL scripts I find the need to join or merge two lists, while avoiding duplicate items.

E.g.:

list1 = '(a b c) 

list2 = '(a d c )

merge_func(list1, list2) -> '(a b c d )

Is there a fast/native way to do it in SKILL that is not the obvious iterative solution?


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>