title: How to test if a list contains another list as a contiguous subsequence?
body: <p>How can I test if a list contains another list (ie. it's a contiguous subsequence). Say there was a function called contains:</p>
  
  <pre><code>contains([1,2], [-1, 0, 1, 2]) # Returns [2, 3] (contains 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]
  </code></pre>
  
  <p>Edit:</p>
  
  <pre><code>contains([2, 1], [-1, 0, 1, 2]) # Returns False
  contains([-1, 1, 2], [-1, 0, 1, 2]) # Returns False
  contains([0, 1, 2], [-1, 0, 1, 2]) # Returns [1, 3]
  </code></pre>