3 ms·
It would seem to make more sense to let the selection functional be a lambda. Neither the original code nor the resulting code are really all that great... It m
by cjfd 6y ago
It would seem to make more sense to let the selection functional be a lambda. Neither the original code nor the resulting code are really all that great... It merely exchanges one form of code duplication for another. Nor is the Open Closed Principle in general all that great, as other comments are also noticing.