[ 
https://issues.apache.org/jira/browse/TINKERPOP-959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marko A. Rodriguez closed TINKERPOP-959.
----------------------------------------

This ticket is simply TINKERPOP-1098 with a new name.

> Add select(unfold()...) step.
> -----------------------------
>
>                 Key: TINKERPOP-959
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-959
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.1.0-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>
> I see alot of this in traversals.
> {code}
> path().unfold().is(gt(0)).count().is(eq(1))
> {code}
> Be nice to say:
> {code}
> path().select(is(0)).count().is(eq(1))
> {code}
> Or, I see this:
> {code}
> groupCount().unfold().sample(1).by{it.value}.map{it.key}
> {code}
> Be cool to be like:
> {code}
> groupCount().select(sample(1).by{it.value}).map{key}
> {code}
> ............ not really sure where I'm going as now that I type it it looks 
> stupid. However, I don't like {{unfold}}. Its too "technical." What I do alot 
> is use {{unfold}} to create a stream of a {{Iterable}} and then filter to one 
> or more elements in that iterable. that is basically "selecting" something 
> from that iterable that meets a filter criteria.
> .......................... perhaps this triggers and idea in @dkuppitz  .... 



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

Reply via email to