tinkerpop/gremlin — pull request #344 by BrynCooke (2013-04-02 10:51:30+00:00)
Title: Added support for @GremlinPipeline.first()@ to Java

Added support for @GremlinPipeline.first()@ to retrieve the first element in the pipeline.
This feature already exists in the Groovy version so just adding it to Java as well.

If the pipeline is empty then NoSuchElementException is thrown as per Groovy version.