title: determine whether a list is sublist of another list in prolog
body: <p>I have just write a predicate to determine whether a list is sublist of another list.</p>
  
  <pre><code>sublist( [], _ ).
  sublist( [X|XS], [X|XSS] ) :- sublist( XS, XSS ).
  sublist( [X|XS], [_|XSS] ) :- sublist( [X|XS], XSS ).
  </code></pre>
  
  <p>But this predicate can only deal with situation like this.</p>
  
  <pre><code>1 ?- sublist([1,2,3], [0,1,0,2,0,3,0]).
  true .
  </code></pre>
  
  <p>Can it also deal with list that its sequence is different from another list?</p>
  
  <pre><code>2 ?- sublist([['D','A','G'],['V','E','D']], [['V','E','D'],['D','A','G']]).
  false.
  </code></pre>
  
  <p>Any help will be appreciated~~</p>