'filter-mapper-combiner' exercise in J