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

Commit 73137c7

Browse files
committed
readme書き直し
1 parent b3412f2 commit 73137c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ data class Sample(
2222

2323
val 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
2828
val result: Sample = fastKFunction.call(1, 2, 3, 4, 5)
@@ -58,7 +58,7 @@ data class Sample(
5858

5959
val sample = Sample(1, 2)
6060

61-
val fastKFunction = FastKFunction(sample::instanceFun, sample)
61+
val fastKFunction = FastKFunction.of(sample::instanceFun, sample)
6262
```
6363

6464
Depending 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
7878
val 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

9898
fun map(src: Map<String, Any?>): Sample {
9999
return fastKFunction.generateBucket()

0 commit comments

Comments
 (0)