title: Gremlin : fetch result as an Array
body: <p>I'm trying to select the entities as mentioned in Gremlin Docs for <a href="http://gremlindocs.spmallette.documentup.com/#select" rel="nofollow noreferrer">Select</a></p>
  
  <pre><code>gremlin&gt; g.v(1).as('x').out('knows').as('y').select
  ==&gt;[x:v[1], y:v[2]]
  ==&gt;[x:v[1], y:v[4]]
  </code></pre>
  
  <p>But I'm trying to get result as like below</p>
  
  <pre><code>gremlin&gt; g.v(1).as('x').out('knows').as('y').select
  ==&gt;[[x:v[1]], [y:v[2],y:v[4]]]
  </code></pre>
  
  <p>Because current scenario for an entity 'x', it has more than 500 associated 'y' entities, So I'm ended up getting same 'x' data for all 'y' entities</p>
  
  <pre><code>gremlin&gt; g.v(1).as('x').out('knows').as('y').select
  ==&gt;[x:v[1], y:v[2]]
  ==&gt;[x:v[1], y:v[4]]
  ==&gt;.....
  ==&gt;[x:v[1], y:v[500]]
  </code></pre>
  
  <p>Could someone guide me the way to do this?</p>