Step - times

times ยท category: Branches and loops

Within repeat(): runs the loop body exactly n times.

Forms

times(arg1: i64)

Example

g.v(1).repeat(__.out()).times(2).values("name").to_list()   // ["ripple", "lop"]

See also