Skip to content

Instantly share code, notes, and snippets.

View lmller's full-sized avatar
🎲
This is the darkest timeline.

Lovis lmller

🎲
This is the darkest timeline.
View GitHub Profile
@lmller
lmller / method_references.kt
Created June 23, 2017 13:23 — forked from ditn/method_references.kt
Useful to explain the differences of the three approaches.
fun printString(string: String) = println(string)
/**
* Prints successfully
*/
Observable.just("Test string")
.doOnNext{ printString(it) }
.subscribe()