groostav
09/14/2017, 9:57 PMtypealias UnaryOp = (Double) -> Double
object cos: UnaryOp by Math::cos
is compared to
object cos: ((Double) -> Double) {
override fun invoke(arg: Double) = Math.cos(arg)
}
any ideas? is this a compiler optimization or will UnaryOp by Math::cos
create a closure and have cos.invoke(arg)
call $delegateClosure.invoke(arg)