https://kotlinlang.org logo
#server
Title
# server
o

orangy

07/19/2017, 7:35 PM
Just an idea. How about a function that returns a
List<String>?
which is null if any param is missing, or param values in order, so you can do this?
Copy code
val (name, category, value) = mapQueryParams("n", "c", "v") ?: throw InvalidUrlParametersException()