Example 1

Observable that emits after 1 second that the button has been clicked. A subscriber fills the rectangle with a random color when the observable emits.



Input

Result


Example 2

Observable that emits every two seconds five times. A subscriber fills the rectangle with a random color when the observable emits.



Result


Example 3

Observable that calculates and emits an array with values of Fibonacci each second during 10 seconds. A subscriber writes them in the result box.



Result


Example 4

Observable that emits a value when every button has been clicked. It accumulates a count. A subscriber writes this count in a box.



Input

Result

Count:
0

Example 5

Create an Observable that emits the number written in the input box when this changes. Observable should double this value using the map function. It will finish with an error if the value is not a number and it will complete if the value is equal to END. A subscriber writes in a box the emitted values, the error and when the observable is completed.



Input

Result


Example 6

Observable that emits events from input keyup. It debounces the events 500 ms, maps the event to the input value and filters only the values with length greater than 2. A Subject is subscribed to the Observable, and this Subject emits the value of the input when the button is clicked. A subscriber does an AJAX call with the emitted values.



Input

Result