Skip to content

Commit 4289c2f

Browse files
shalva97hsz
authored andcommitted
add println extension
1 parent a89b8fa commit 4289c2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Utils.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ fun readInput(name: String) = File("src", "$name.txt")
1414
fun String.md5() = BigInteger(1, MessageDigest.getInstance("MD5").digest(toByteArray()))
1515
.toString(16)
1616
.padStart(32, '0')
17+
18+
/**
19+
* The easy way to print anything
20+
*/
21+
fun Any?.println() {
22+
println(this)
23+
}

0 commit comments

Comments
 (0)