3 ms·
In addition to the examples other people have given, I think Ruby does this very nicely by making map, filter, and reduce methods on collection data structures.
by nordsieck 4y ago
In addition to the examples other people have given, I think Ruby does this very nicely by making map, filter, and reduce methods on collection data structures.
Of course, Ruby is a bit of a mixed bag, but for the applications where it fits, it can be very nice.