title: Split List into sublists based on border values
body: <p>I would like to split up an existing sorted list into multiple sublists, based on the entries of another list.</p>
  
  <p>Let's say I have an array like this:</p>
  
  <pre><code>List&lt;int&gt; myList = [1,3,7,23,56,58,164,185];
  </code></pre>
  
  <p>and another list, which defines at which places <code>myList</code> should be split:</p>
  
  <pre><code>List&lt;int&gt; borders = [4,59,170];
  </code></pre>
  
  <p>What's the shortest way to get a nested list where <code>myList</code> is split at the values defined in <code>borders</code>, i.e. like this: </p>
  
  <pre><code>[[1,3],[7,23,56,58],[164],[185]]
  </code></pre>
  
  <p>I have already solved it by manually looping through the lists, but I can imagine it's easier and shorter using Linq.</p>
  
  <p>EDIT: There is one simplification: numbers can't be the same as the borders, so it's impossible that a number is contained in <code>myList</code> and <code>borders</code> at the same time.</p>