is there any function that will shorten my code he...
# codereview
e
is there any function that will shorten my code here?
Copy code
if(srcConnections.contains(src)) srcConnections[src]!!.add(c)
            else srcConnections[src] = arrayListOf(c)