Alpha attempt at in and out predicates.
This commit is contained in:
parent
86ae24f59d
commit
f775756ad1
3 changed files with 29 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ func (wk *worker) embedTraversals(env *otto.Otto, obj *otto.Object) {
|
|||
obj.Set("SaveR", wk.gremlinFunc("saver", obj, env))
|
||||
obj.Set("Except", wk.gremlinFunc("except", obj, env))
|
||||
obj.Set("Difference", wk.gremlinFunc("except", obj, env))
|
||||
obj.Set("InPredicates", wk.gremlinFunc("in_predicates", obj, env))
|
||||
obj.Set("OutPredicates", wk.gremlinFunc("out_predicates", obj, env))
|
||||
}
|
||||
|
||||
func (wk *worker) gremlinFunc(kind string, prev *otto.Object, env *otto.Otto) func(otto.FunctionCall) otto.Value {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue