Ray Rahke
03/09/2024, 1:32 AMprivate fun format(message: String): Pair<String, List<String>> {
val tokens = message.split(" ")
val (keyword, parameters) = (tokens[0], tokens.slice(1))
Unexpected tokens (use ';' to separate expressions on the same line)??
kotlin supports destructuring right?asdf asdf
03/09/2024, 2:02 AMval (a, b) = foo() to bar()
. Not really sure why you want to do this though as you can just make it with 2 separate variable declarationsRay Rahke
03/09/2024, 2:07 AMNot really sure why you want to do this though as you can just make it with 2 separate variable declarations
Ray Rahke
03/09/2024, 2:07 AM