Github user jegonzal commented on the pull request:
https://github.com/apache/spark/pull/2815#issuecomment-61349425
At this point I could also imagine actually having a separate function
closure for each version.
```scala
mapTriplets(f: Edge => ED2)
mapTriplets(f: SrcEdge => ED2)
mapTriplets(f: DstEdge => ED2)
mapTriplets(f: Triplet => ED2)
```
Though to do this would require users to annotate their functions:
```scala
g.mapTriplets( (t: SrcEdge) => t.src )
```
What do you all think?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]