Github user FlorianHockmann commented on the issue:
https://github.com/apache/tinkerpop/pull/792
I just rebased on `tp32` and hopefully also addressed your suggestions.
`Lambda` now implements a bunch of interfaces that mirror the Java functional
interfaces from the traversal API:
```cs
public class Lambda : IFunction, IBiFunction, IPredicate, IUnaryOperator,
IBinaryOperator,
IComparator, IConsumer, ISupplier
```
This should make it easier for users to see where lambdas can be used. I
also added a short note to the documentation about these interfaces for lambdas.
With all these new interfaces there is now just one Java type left for
which we don't have a .NET equivalent: `VertexProgram`. So the next release
will again increase type-safety of the traversal API a lot.
We are now down to just 5 ignored scenarios for `tp32` ð
@jorgebay, you linked the Java `Lambda` interface in one of your comments.
The same file also contains classes like `TwoArgLambda` that are very similar
to the `Lambda` class I implemented in this PR, but they use [different methods
for the different
interfaces](https://github.com/apache/tinkerpop/blob/3.2.7/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/function/Lambda.java#L158)
like:
```java
public static <A> Consumer<A> consumer(final String lambdaSource,
final String lambdaLanguage)
```
Do we also want to have similar methods in Gremlin.Net? It would be very
easy to implement and I can image that just having a `Lambda` object could lead
to some confusion as to where it can be used.
---