transforms_kt.kt
# rx
a
transforms_kt.kt
d
I like this syntax a lot, personally:
Copy code
val transformer5 = fun Observable<String>.(): Observable<String> {
    return map { it }
}
val transformer6 = fun Observable<String>.() = map { it }
a
how would you use that in
example()
?
d
The same as the other properties.
Its just a different lambda syntax which I prefer for the purpose of type inference.
If a lambda type is expected from your expression, you dont need to specify parameter types. Otherwise, you do, and then I prefer this syntax. You can also specify the type of the receiver parameter like this.