[ https://issues.apache.org/jira/browse/TINKERPOP-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16188415#comment-16188415 ]
Marko A. Rodriguez commented on TINKERPOP-1632: ----------------------------------------------- Here are two concepts we will have to deal with. 1. Manipulating numbers directly. (e.g. {{math(add).by(3)}}) 2. Manipulating numbers indirectly. (e.g. {{math(add).by("a")}}) For predicates we have two types of steps: {{is()}} (direct) and {{where()}} (indirect). I do not like this distinction and something we should rectify in TinkerPop4. For instance, {{is(var("a"))}} vs. {{is("a")}}. Do we go down the route of having two types of {{math()}} functions? I don't think we should do that. Thus, how do we distinguish the string "a" and the variable "a" ? > Create a set of default functions > --------------------------------- > > Key: TINKERPOP-1632 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1632 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.3.0 > Reporter: Daniel Kuppitz > > We already have a a set of default BiFunctions / operators, that are not > treated as lambdas. We should also have a bunch of simple functions, that can > then be used in {{map()}} or {{sack()}} and that can be serialized as > bytecode. For example: > {noformat} > ...map(sqrt) > ...map(log) > ...sack(sigmoid) // compute sigmoid of the current sack and update the > sack > ...sack(cos).by("x") // compute the cosine of the current element's "x" and > assign / overwrite the current sack value > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)