groostav
12/18/2016, 8:55 PMdata class MutableInsets(var left: Double, var right: Double, var top: Double, var bottom: Double){
fun toInsets() = Insets(left, right, top, bottom)
}
fun myFunction(node: Node, mutator: MutableInsets.() -> Unit) {
val mutable = initialInsets.let { MutableInsets(it.left, it.right, it.top, it.bottom); }
mutator(mutable);
return mutable.toInsets();
}