I'm not too happy with the usage of the word 'filter'. For me, a filter is a device which takes input and allows only a certain part of the input to pass through, unmodified, so a part of the input is filtered out - think sieve. What you are doing is changing the elements. But, alas, I'm not a native speaker so I might be off here.