Step - fold
fold ยท category: Lists and ordering
Collects the whole stream into one list; with a seed and an Operator it reduces the stream instead.
Forms
fold()
fold(arg1: any, arg2: any)
Example
g.v().has_label("person").values("age").fold(0, Operator.sum).next() // 123