Filtered accumulate procedure - first attempt

This definition of filtered-accumulate works but it cannot be used as a
black-box abstraction. It forces the user to learn how
filtered-accumulate internally applies 'filter', in order to design a
custom filter for the problem at hand.