RadicalZephyr / sodium-rust

FRP implementation in Rust
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add filter_map combinator #7

Open RadicalZephyr opened 8 months ago

RadicalZephyr commented 8 months ago

As long as the node count of the graph is the major factor in graph performance it's helpful to provide common facilities that can reduce the node count.

The filter_map combinator combines the functionality of doing a map to an Option<T> and then chaining that with filter_optional. In a future major revision change, filter_map could entirely replace filter_optional by passing the identity function.