On Sunday, 13 July 2014 at 16:44:21 UTC, Dragos Carp wrote:
Let say you output a log in a loop with 100 iterations. logFirstN(10, ...) outputs the log message just for the first 10 iterations, and logEveryN(10, ...) outputs only for 1st, 11th, 21st, .. and 91st iterations.
In D, we can easily make this syntax every!(10, log)(…) or something along the lines, sidestepping any naming problems and also allowing for more flexibility at the same time.
David
