apply

private fnR apply(T, R, string op)(T x, T y) @safe pure nothrow

One guarded application: true division for `/`, wrapping `%` otherwise.

Parameters

Tthe operand element type (integral)
Rthe result element type (double for `"/"`, T for `"%"`)
op`"/"` or `"%"`
xthe left operand
ythe right operand (already guard-checked)

Returns

x op y at the result type.