We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
code
val inputNo = arrayOf(1,2,3) fun main(args: Array<String>) { val output = inputNo.reduce { result, item -> result + item } println("Result-> $output") }
output
Result-> 6