Title
e

elect

07/19/2017, 9:11 AM
shouldn't this work?
String.format("#%02X%02X%02X%02X", *i)
n

nkiesel

07/19/2017, 8:47 PM
arrayOf(3,2,1).run { "#%02X%02X%02X".format(*this) }
works for me. Note that this only works for arrays and not for lists.
e

elect

07/19/2017, 9:07 PM
thanks Norbert, I am gonna try tomorrow
Type mismatch. Required: Array<out Any?> Found: IntArray