Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

return lists that do not share all of the same elements

I am having Sage generate an array of lists for me, but I do not want it to give me the lists that have all of the same elements. For example, if Sage gives me

[1 2 3 4]

[2 3 4 1]

[1 3 4 2]

I only want Sage to give me [1 2 3 4]. I want to create a new array with these non-repeated lists. How do I do that? Thank you!