Join Slack
Powered by
Hi, I'm trying to make a typesafe builder pattern ...
# announcements
b
breandan
03/07/2017, 6:41 PM
Hi, I'm trying to make a typesafe builder pattern in Kotlin
https://gist.github.com/breandan/d0d7c21bb7f78ef54c21ce6a6ac49b68
Does anyone know how to move the last line
fun ThingBuilder<OK, OK, OK>.build() = Thing(this.a, this.b, this.c)
into
ThingBuilder
?
Open in Slack
Previous
Next