Created
March 16, 2023 02:26
-
-
Save s1monw1/b209a86784bab795ffdd3f7d9336a745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrintingCustomizer { | |
private val separator = "________________" | |
fun <T, V> Map<T, V>.customPrint() { | |
forEach { (k, v) -> | |
println("K: $k") | |
println("V: $v") | |
println(separator) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment