The whole loop and remapping can be simplified to:

```
return Enumerable.Range(0, jArray.Count / 2).SelectMany(i =>
        Enumerable.Repeat(reader.ToObject(jArray[i * 2]), (int) 
reader.ToObject(jArray[i * 2 + 1]))).
    ToList();
```

[ Full content available at: https://github.com/apache/tinkerpop/pull/1018 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to