title: How to return a part of an array in Ruby?
body: <p>With a list in Python I can return a part of it using the following code:</p>
  
  <pre><code>foo = [1,2,3,4,5,6]
  bar = [10,20,30,40,50,60]
  half = len(foo) / 2
  foobar = foo[:half] + bar[half:]
  </code></pre>
  
  <p>Since Ruby does everything in arrays I wonder if there is something similar to that.</p>