pub fn split_signal<S, A, F>(
    signal: S,
    initial_value: A,
    map: F
) -> (impl Signal<Item = S::Item>, impl Signal<Item = A>)where
    S: Signal,
    F: FnMut(&S::Item) -> A,
Expand description

All credit to Pauan https://github.com/Pauan for this function.