4 ms·
One case where I (ab)used this in R was to add an abstract class called Timed that measured the time the inner function took. I guess I'd probably use a decora
by disgruntledphd2 4y ago
One case where I (ab)used this in R was to add an abstract class called Timed that measured the time the inner function took.
I guess I'd probably use a decorator in Python but this was R and I was on an S4 buzz back then so I took the approach above.