[ 
https://issues.apache.org/jira/browse/TINKERPOP-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814807#comment-15814807
 ] 

ASF GitHub Bot commented on TINKERPOP-1549:
-------------------------------------------

Github user okram commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/529#discussion_r95351178
  
    --- Diff: docs/src/reference/the-traversal.asciidoc ---
    @@ -1916,6 +1916,35 @@ g.V(1).both().both().simplePath()
     g.V(1).both().both().simplePath().path()
     ----
     
    +[[skip-step]]
    +Skip Step
    +~~~~~~~~~
    +
    +The `skip()`-step is analogous to <<range-step,`range()`-step>> save that 
the higher end range is set to -1.
    +
    +[gremlin-groovy,modern]
    +----
    +g.V().skip(2)
    +g.V().range(2, -1)
    +g.V().skip(2).toString()
    --- End diff --
    
    We should not advertise `toString()` as other GLV's don't show compilation 
information and in fact, down the line, we will most likely change what 
`toString()` shows in Gremlin-Java/Groovy.
    
    I would add an example that uses `order().by(...).skip(x)` so that people 
know it skips the first `x` results. For instance, show without `skip(x)`, then 
show with `skip(x)` after an `order()`.


> Implement skip()
> ----------------
>
>                 Key: TINKERPOP-1549
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1549
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>            Reporter: Daniel Kuppitz
>            Assignee: Daniel Kuppitz
>
> We should have a {{.skip(x)}} and {{.skip(local, x)}}. The functionality is 
> already provided by {{RangeStep}} ({{.range(x, -1)}} skips {{x}} elements and 
> emits the remainder).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to