Join Slack
Powered by
or ``` fun ByteArray.toHexString() = joinToString(...
# stdlib
m
marcinmoskala
06/19/2017, 1:39 PM
or
Copy code
fun ByteArray.toHexString() = joinToString("") { byte -> "%02x".format(byte) }
But I would need to unit-test it to be sure if this one is ok
2
Views
Open in Slack
Previous
Next