title: How do you do list slicing equivalent to python in Ruby?
body: <p>I am tryiing to port some python code to ruby, and I am doing pretty well, using equivelent ruby functions, even removing / altering some to use ruby features more.
  However at a core point I need to get slices from an array 
  in python the following works fine:</p>
  
  <pre><code>output=["Apple","Orange","Pear"]
  team_slices=[(0,1),(1,2),(2,3)]
  for start,end in team_slices:
      print output[start:end]
  </code></pre>
  
  <p>Will output as expected:</p>
  
  <pre><code>['Apple']
  ['Orange']
  ['Pear']
  </code></pre>
  
  <p>Whereas the ruby code:</p>
  
  <pre><code>output=["Apple","Orange","Pear"]
  team_slices=[[0,1],[1,2],[2,3]]
  team_slices.each do |start,ending|
      print output[start..ending]
  end
  </code></pre>
  
  <p>Will output:</p>
  
  <pre><code>["Apple","Orange"]
  ["Orange","Pear"]
  ["Pear"]
  </code></pre>
  
  <p>Is there any way to do the slicing more equivalent to python? I know I am likely missing somethign simple here</p>