Skip to main content

map2

Function map2 

Source
pub fn map2<A, B, C, F>(a: &Behavior<A>, b: &Behavior<B>, f: F) -> Behavior<C>
where A: IntoGeometric + FromGeometric + Clone + 'static, B: IntoGeometric + FromGeometric + Clone + 'static, C: IntoGeometric + FromGeometric + Clone + 'static, F: Fn(A, B) -> C + Clone + 'static,
Expand description

Map multiple behaviors with a function

This is useful when you need to transform multiple behaviors at once.