list-comparison

Null in IEnumerable vs IList

Why can an IEnumerable = null be passed without error but an IList=Null will not compile? ...

How to compare two generic lists in C# 3.0?

Possible Duplicate: Is there a built-in method to compare collections in C#? What is the best way to compare to generic two generic lists in C# 3.0? ...

Testing if a list contains another list with Python

How can I test if a list contains another list. Say there was a function called contains: contains([1,2], [-1, 0, 1, 2]) # Returns [2, 3] (conatins returns [start, end]) contains([1,3], [-1, 0, 1, 2]) # Returns False contains([1, 2], [[1, 2], 3) # Returns False contains([[1, 2]], [[1, 2], 3]) # Returns [0, 0] Edit: contains([2, 1], [...