Hi,

I'm not sure why I did this. I suspect it could just be <U,V>. If you type it 
like that, do you run into an compilation issues? If you get it working as such 
and it makes sense without having to change any of the casts in the test 
suites, please provide a PR.

Thanks,
Marko.

http://markorodriguez.com

On Jan 10, 2016, at 3:51 PM, Michael Pollmeier <[email protected]> 
wrote:

> No answer on this one yet - what's a better place to ask? Should I create a 
> jira ticket instead?
> 
> On 12/21/2015 06:59 PM, Michael Pollmeier wrote:
>> I don't understand the types on the `by` steps that take a function
>> projection.
>> 
>> 1) Shouldn't it be `Function<E, V>` for the function parameter in both
>> cases?
>> 2) What is the reason for constraining the function passed to the second
>> one to `Element`?
>> 
>> without comparator:
>> <V> GraphTraversal<S, E> by(Function<V, Object>)
>> 
>> with comparator:
>> <V> GraphTraversal<S, E> by(Function<Element, V>, Comparator<V>)
>> 
>> (from GraphTraversal.java)
>> 
>> Cheers
>> Michael
>> 

Reply via email to