a guest May 25th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const userClicked$ = clickStream.mapTo(1)
  2. // strumień zwraca wartość jeden za każdym kliknięciem
  3. const userClicksSum$ = userClicked$.fold((count, x) => count + x, 0)
  4. // strumień zwraca liczbę dotychczasowych kliknięć
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand