Step - inject

inject · category: Start

Inserts the given values into the stream (on g it starts a traversal with them).

Forms

inject()
inject(arg1: any)
inject(arg1: any, arg2: any)
inject(arg1, …, arg10)

Example

g.inject(1, 2, 3).sum().next()   // 6