differential-dataflow 0.9.0

An incremental data-parallel dataflow platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
## The Filter Operator

The `filter` operator applies a supplied predicate to each element of a collection, and retains only those for which the predicate returns `true`.

As an example, we might select out those management relation where the manager has greater employee id than the managee, by writing

```rust,no_run
    manages
        .filter(|&(m2, m1)| m2 > m1);
```

Rust makes it very clear when a method is provided with data, or only the ability to look at the data. The filter operator is only allowed to look at the data, which is where the `&` glyph comes from. This allows us to be more efficient in execution, but it is a subtle concept that further Rust reading may illuminate.