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

Commit b70a2bf

Browse files
committed
順番を整備
1 parent 6ee552e commit b70a2bf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,6 @@ Calling the `constructor` of an `inner class` or an `extension function` defined
108108
### How to call
109109
`FastKFunction` supports two major types of calls.
110110

111-
#### Call by vararg or Collection
112-
Calling with `vararg` or `Collection` is faster if you don't need to use the `default arguments` and
113-
can get them in the order in which they are defined.
114-
115-
```kotlin
116-
val fastKFunction: FastKFunction<Sample> = FastKFunction.of(function)
117-
118-
// call by vararg
119-
val result: Sample = fastKFunction.call(1, 2, 3, 4, 5)
120-
121-
// call by Collection
122-
val result: Sample = fastKFunction.callByCollection(listOf(1, 2, 3, 4, 5))
123-
```
124-
125111
#### Call by ArgumentBucket
126112
If the `default argument` is expected to be used, a call using `ArgumentBucket` is available.
127113

@@ -146,6 +132,20 @@ fun map(src: Map<String, Any?>): Sample {
146132
}
147133
```
148134

135+
#### Call by vararg or Collection
136+
Calling with `vararg` or `Collection` is faster if you don't need to use the `default arguments` and
137+
can get them in the order in which they are defined.
138+
139+
```kotlin
140+
val fastKFunction: FastKFunction<Sample> = FastKFunction.of(function)
141+
142+
// call by vararg
143+
val result: Sample = fastKFunction.call(1, 2, 3, 4, 5)
144+
145+
// call by Collection
146+
val result: Sample = fastKFunction.callByCollection(listOf(1, 2, 3, 4, 5))
147+
```
148+
149149
### For functions that can be called from a single argument
150150
For a function that can be called with a single argument, you can use the `SingleArgFastKFunction`.
151151

0 commit comments

Comments
 (0)