I haven’t had any luck creating function that removes sublists.
I have this list:
'((("a" "c") ("a" "l")) (("b" "c") ("b" "l")) (("c" "hmm")))
This should be result:
'(("a" "c") ("a" "l") ("b" "c") ("b" "l") ("c" "hmm"))
Any help would be appreciated.
Used two functions flatten (found on the net) and createPairs.
First function flattens list to 1 level deep list like this:
And second function createPairs joins list by pairs like this:
Here are the used functions:
Flatten:
CreatePairs: