Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit a473f8d

Browse files
committed
Update.
1 parent dea1486 commit a473f8d

File tree

4 files changed

+294
-0
lines changed

4 files changed

+294
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.bennyhuo.kotlin.other.currying
2+
3+
import cn.tursom.core.curry.currying
4+
5+
/**
6+
* Created by benny.
7+
*/
8+
9+
enum class LoggerLevel {
10+
DEBUG,
11+
INFO,
12+
WARN,
13+
ERROR
14+
}
15+
16+
fun log(context: Any?, level: LoggerLevel, message: Any?) {
17+
println("$level - [$context]: $message")
18+
}
19+
20+
fun main() {
21+
::log.currying()(1234)(LoggerLevel.DEBUG)("Hello Curried from Kotlin !!!!!!!!!!")
22+
}

0 commit comments

Comments
 (0)