@@ -79,9 +79,9 @@ Please see here for the introduction method.
7979
8080- [ ProjectMapK / FastKFunction] ( https://jitpack.io/#ProjectMapK/FastKFunction )
8181
82- ## How to use FastKFunction.
82+ ## How to use FastKFunction
8383
84- ### Instance parameter.
84+ ### Instance parameter
8585If you call an instance function, you can expect a faster call with ` instance parameter ` .
8686
8787``` kotlin
@@ -100,10 +100,10 @@ val fastKFunction = FastKFunction.of(sample::instanceFun, sample)
100100Depending on how you get the ` KFunction ` , the ` instance parameter ` may be required.
101101Even if the ` instance parameter ` is not required, passing an ` instance parameter ` will make the call faster.
102102
103- ### How to call.
103+ ### How to call
104104` FastKFunction ` supports two major types of calls.
105105
106- #### Call by vararg or Collection.
106+ #### Call by vararg or Collection
107107Calling with ` vararg ` or ` Collection ` is faster if you don't need to use the default arguments and
108108 can get them in the order in which they are defined.
109109
@@ -117,7 +117,7 @@ val result: Sample = fastKFunction.call(1, 2, 3, 4, 5)
117117val result: Sample = fastKFunction.callByCollection(listOf (1 , 2 , 3 , 4 , 5 ))
118118```
119119
120- #### Call by ArgumentBucket.
120+ #### Call by ArgumentBucket
121121If the default argument is expected to be used, a call using ` ArgumentBucket ` is available.
122122
123123` ArgumentBucket ` has interfaces like ` MutableMap<KParameter, Any?> ` , which can be used, for example, as follows.
@@ -141,7 +141,7 @@ fun map(src: Map<String, Any?>): Sample {
141141}
142142```
143143
144- ### For functions that can be called from a single argument.
144+ ### For functions that can be called from a single argument
145145For a function that can be called with a single argument, you can use the ` SingleArgFastKFunction ` .
146146
147147``` kotlin
0 commit comments