From 90616e805448194b862e66c85c7cca108f4f8d31 Mon Sep 17 00:00:00 2001 From: Mick Brooks Date: Wed, 12 Sep 2012 19:08:40 +0100 Subject: [PATCH] Define start variable with local scope in the closure --- chap7-neo4j/friendsuggest.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/chap7-neo4j/friendsuggest.groovy b/chap7-neo4j/friendsuggest.groovy index d0b9941..ee3d98f 100644 --- a/chap7-neo4j/friendsuggest.groovy +++ b/chap7-neo4j/friendsuggest.groovy @@ -9,6 +9,7 @@ Gremlin.defineStep( 'friendsuggest', [Vertex, Pipe], { + def start _().sideEffect{start = it}.both('friends'). except([start]).out('likes').dedup }