title: How to convert two consecutive elements from List to entries in Map?
body: <p>I have a list:</p>
  
  <pre><code>List(1,2,3,4,5,6)
  </code></pre>
  
  <p>that I would like to to convert to the following map:</p>
  
  <pre><code>Map(1-&gt;2,3-&gt;4,5-&gt;6)
  </code></pre>
  
  <p>How can this be done?</p>