bmsantos
10/06/2016, 9:57 PMpackage foo
import kotlin.browser.window
fun rx(): dynamic {
return window["Rx"]
}
fun main(args: Array<String>) {
rx().Observable
.interval(500)
.timeInterval()
.take(10)
.subscribe({ value -> println("Got timestamp: ${value.interval}") })
}