Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created March 16, 2023 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s1monw1/b209a86784bab795ffdd3f7d9336a745 to your computer and use it in GitHub Desktop.
Save s1monw1/b209a86784bab795ffdd3f7d9336a745 to your computer and use it in GitHub Desktop.
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