I have a list of strings such as:
listOf("1", "2", "3", "4", "+", "3")
And I want to concatenate so that I only get the numbers: "1234". I first attempted using a for loop which worked.
However I was wondering if Kotlin had a way of one lining the whole thing using a nice one line like:
val myList = listOf("1", "2", "3", "4", "+", "3")
someConcatenationFunction(myList) // returns "1234"