Added new filter() expression to evaluate a function for each element of a collection, returning a filtered
result. Added test for the new method.