I have a list, say [1, 5, 2, 6, 2, 5, 1].
The items in this list are in the same order in this list: [4, 1, 5, 2, 6, 2, 5, 1, 6, 2, 3]
What’s an easy way finding out if a 1-nested lists’ items are in the same order in another 1-nested lists’ items?
After looking at the question I wrote this. Unlike some of the others that assume that the elements in the first array must occur in the second contiguously, this does not.
The OP’s example:
prints:
True