Advertisement
Guest User

Untitled

a guest
May 25th, 2019
101
0
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ęć
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement