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) )
  2. int opApply(int delegate(size_t, E) )
    interface InputRange(E)
    int
    opApply
    (
    scope int delegate
    (
    size_t
    ,
    E
    )
    )

Meta

Suggestion Box / Bug Report