So if I have
lst1 = [a, b] and
lst2 = [x, y] the result would be:
[x, y, a, b] [x, a, y, b] [x, a, b, y] [a, x, y, b] [a, x, b, y] [a, b, x, y]
I'm thinking about doing something recursive where I take the first element of a list, place it at the start, then recursively take the next element of that list and shift it through each position (and on each shift go through all remaining elements of that list).
But I'm wondering if there may be a nicer way to do this?
edit: Some more elaborate info here