Statement.inject

Binds iterable values in order, executes and resets the statement, in one call.

  1. void inject(Args args)
  2. void inject(auto ref const T obj)
  3. void inject(auto ref T obj)
    struct Statement
    void
    inject
    (
    T
    )
    (
    auto ref T obj
    )
    if (
    !isBindable!T &&
    isIterable!T
    )
    in { static if (__traits(compiles, obj.length)) assert (obj.length == this.parameterCount, "parameter count mismatch"); }

Meta