I would like to check if a collection that has been passed to a function is ordered, that is, the order of elements is fixed. (I am not talking about "sorted".)
- A
setis not ordered. lists andtuples are ordered.
Is there a generic test that I can use?