Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit dad2eca

Browse files
committed
表記ブレ対応
1 parent ff9ddaf commit dad2eca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
8585
If 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)
100100
Depending on how you get the `KFunction`, the `instance parameter` may be required.
101101
Even 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
107107
Calling 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)
117117
val result: Sample = fastKFunction.callByCollection(listOf(1, 2, 3, 4, 5))
118118
```
119119

120-
#### Call by ArgumentBucket.
120+
#### Call by ArgumentBucket
121121
If 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
145145
For a function that can be called with a single argument, you can use the `SingleArgFastKFunction`.
146146

147147
```kotlin

0 commit comments

Comments
 (0)