substitute

Substitute in parallel all subsequences in r which equal (according to pred) ss[2*n] with ss[2*n + 1] for n = 0, 1, 2, ....

  1. template substitute(substs...)
  2. auto substitute(R r, Ss ss)
  3. template substitute(ss...)
  4. auto substitute(R r, Ss ss)
    substitute
    (
    alias pred =
    (
    a
    ,
    b
    )
    => a == b
    R
    Ss...
    )
    (
    R r
    ,
    Ss ss
    )
    if (
    isInputRange!(Unqual!R) &&
    Ss.length >= 2
    &&
    &&
    haveCommonType!(ElementType!R, ElementType!(Ss[0]))
    )

Meta