Description
gremlin> g.V().local(union(values("age"), outE().values("weight")).fold()) ==>[29,0.4,0.5,1.0] ==>[27] ==>[] ==>[32,1.0,0.4] ==>[] ==>[35,0.2] gremlin> g.V().local(union(values("age"), outE().values("weight")).fold()).max(local) ==>29.0 ==>27
Encounters the first empty list and then stops.