@@ -79,9 +79,9 @@ Please see here for the introduction method.
79
79
80
80
- [ ProjectMapK / FastKFunction] ( https://jitpack.io/#ProjectMapK/FastKFunction )
81
81
82
- ## How to use FastKFunction.
82
+ ## How to use FastKFunction
83
83
84
- ### Instance parameter.
84
+ ### Instance parameter
85
85
If you call an instance function, you can expect a faster call with ` instance parameter ` .
86
86
87
87
``` kotlin
@@ -100,10 +100,10 @@ val fastKFunction = FastKFunction.of(sample::instanceFun, sample)
100
100
Depending on how you get the ` KFunction ` , the ` instance parameter ` may be required.
101
101
Even if the ` instance parameter ` is not required, passing an ` instance parameter ` will make the call faster.
102
102
103
- ### How to call.
103
+ ### How to call
104
104
` FastKFunction ` supports two major types of calls.
105
105
106
- #### Call by vararg or Collection.
106
+ #### Call by vararg or Collection
107
107
Calling with ` vararg ` or ` Collection ` is faster if you don't need to use the default arguments and
108
108
can get them in the order in which they are defined.
109
109
@@ -117,7 +117,7 @@ val result: Sample = fastKFunction.call(1, 2, 3, 4, 5)
117
117
val result: Sample = fastKFunction.callByCollection(listOf (1 , 2 , 3 , 4 , 5 ))
118
118
```
119
119
120
- #### Call by ArgumentBucket.
120
+ #### Call by ArgumentBucket
121
121
If the default argument is expected to be used, a call using ` ArgumentBucket ` is available.
122
122
123
123
` 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 {
141
141
}
142
142
```
143
143
144
- ### For functions that can be called from a single argument.
144
+ ### For functions that can be called from a single argument
145
145
For a function that can be called with a single argument, you can use the ` SingleArgFastKFunction ` .
146
146
147
147
``` kotlin
0 commit comments