Exposed Except (alias Difference) operator in Gremlin API.

This commit is contained in:
Matei Chiperi 2014-08-27 14:48:30 -07:00
parent 5d4e22498d
commit def70ca12e
2 changed files with 14 additions and 8 deletions

View file

@ -39,7 +39,8 @@ func (wk *worker) embedTraversals(env *otto.Otto, obj *otto.Object) {
obj.Set("Save", wk.gremlinFunc("save", obj, env))
obj.Set("SaveR", wk.gremlinFunc("saver", obj, env))
obj.Set("Loop", wk.gremlinFunc("loop", obj, env))
obj.Set("Not", wk.gremlinFunc("not", obj, env))
obj.Set("Except", wk.gremlinFunc("not", obj, env))
obj.Set("Difference", wk.gremlinFunc("not", obj, env))
}
func (wk *worker) gremlinFunc(kind string, prev *otto.Object, env *otto.Otto) func(otto.FunctionCall) otto.Value {