joshua.ewer
12/06/2017, 7:19 PMgiven two nullable lists,anda: List<String>?
b:List<String>?
if any are not null, return a concat list
else return null
gildor
12/07/2017, 1:23 AM(b.orEmpty() + a.orEmpty()).takeIf { it.isNotEmpty() }
But little bit less efficient if both lists are null because will be created a new collection