pub fn filter<L>(&self, mut logic: L) -> Collection<G, D, R>
    where L: FnMut(&D) -> bool + 'static {
        self.inner
            .filter(move |(data, _, _)| logic(data))
            .as_collection()
    }
Creates a new collection containing those input records satisfying the supplied predicate.

# Examples

```
use differential_dataflow::input::Input;

::timely::example(|scope| {
scope.new_collection_from(1 .. 10).1
.map(|x| x * 2)
.filter(|x| x % 2 == 1)
.assert_empty();
});
```
differential-dataflow/src/collection.rs