Closed krlawrence closed 1 year ago
Closing as this is fixed and work has now started on the second edition. There will likely be one final release of the v283 first edition line before the V2 branch becomes the second edition. That release will include these fixes.
Gremlin does not have a
reverse
step but a list can be reversed using theindex
step couples withorder
andtail
It is possible to do this today using just existing Gremlin steps. The example below takes advantage of the
index
step to give each element of a list an index number. For example:Given that building block, we can use those index values and order the list.
The last step is to return the reordered list with the index values removed.