mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-04 08:41:07 +08:00
add (() -> T).unaryPlus()
This commit is contained in:
parent
2512e49fa2
commit
f17402f3dc
@ -244,7 +244,10 @@ fun ByteArray.digest(type: String) = try {
|
||||
|
||||
fun randomInt(min: Int, max: Int) = Random().nextInt(max) % (max - min + 1) + min
|
||||
|
||||
|
||||
fun getTAG(cls: Class<*>): String {
|
||||
return cls.name.split(".").last().dropLast(10)
|
||||
}
|
||||
|
||||
operator fun <T> (() -> T).unaryPlus() = object {
|
||||
override fun toString() = this@unaryPlus().toString()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user