You can always create an inline function to handle...
# announcements
b
You can always create an inline function to handle it. e.g.
Copy code
public inline fun byteArrayOf(vararg elements: Char): Array<Byte> {
    return elements.map { it.toByte() }.toTypedArray()
}
would result in
val bytes = byteArrayOf('a', 'b', 'c', 'd’)