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

Commit 57e2b63

Browse files
committed
readme修正
1 parent f6f34f4 commit 57e2b63

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ fun map(src: Map<String, Any?>): Sample {
105105
}
106106
```
107107

108+
### For functions that can be called from a single argument.
109+
For a function that can be called with a single argument, you can use the `SingleArgFastKFunction`.
110+
111+
```kotlin
112+
data class Sample(val arg: Int)
113+
114+
val fastKFunction: SingleArgFastKFunction<Sample> = SingleArgFastKFunction.of(::Sample)
115+
116+
val result: Sample = fastKFunction.call(1)
117+
```
118+
108119
## Benchmark
109120
You can run the benchmark with the `./gradlew jmh`.
110121
Please note that it will take about 2 hours in total if executed with the default settings.

0 commit comments

Comments
 (0)