@@ -22,7 +22,7 @@ data class Sample(
2222
2323val function: KFunction <Sample > = ::Sample
2424
25- val fastKFunction: FastKFunction <Sample > = FastKFunction (function)
25+ val fastKFunction: FastKFunction <Sample > = FastKFunction .of (function)
2626
2727// call by vararg
2828val result: Sample = fastKFunction.call(1 , 2 , 3 , 4 , 5 )
@@ -58,7 +58,7 @@ data class Sample(
5858
5959val sample = Sample (1 , 2 )
6060
61- val fastKFunction = FastKFunction (sample::instanceFun, sample)
61+ val fastKFunction = FastKFunction .of (sample::instanceFun, sample)
6262```
6363
6464Depending on how you get the ` KFunction ` , the ` instance parameter ` may be required.
@@ -72,7 +72,7 @@ Calling with `vararg` or `Collection` is faster if you don't need to use the def
7272 can get them in the order in which they are defined.
7373
7474``` kotlin
75- val fastKFunction: FastKFunction <Sample > = FastKFunction (function)
75+ val fastKFunction: FastKFunction <Sample > = FastKFunction .of (function)
7676
7777// call by vararg
7878val result: Sample = fastKFunction.call(1 , 2 , 3 , 4 , 5 )
@@ -93,7 +93,7 @@ data class Sample(
9393 val arg3 : String? = null
9494)
9595
96- private val fastKFunction: FastKFunction <Sample > = FastKFunction (::Sample )
96+ private val fastKFunction: FastKFunction <Sample > = FastKFunction .of (::Sample )
9797
9898fun map (src : Map <String , Any ?>): Sample {
9999 return fastKFunction.generateBucket()
0 commit comments