InputRange.opApply

foreach iteration uses opApply, since one delegate call per loop iteration is faster than three virtual function calls.

  1. int opApply(int delegate(E) )
    interface InputRange(E)
    int
    opApply
    (
    scope int delegate
    (
    E
    )
    )
  2. int opApply(int delegate(size_t, E) )

Meta