<@U0B89PWE4>: Depends on your code, I guess, do yo...
# announcements
c
@dsvoronin: Depends on your code, I guess, do you need this logic in many places? What is more readable to you and your team:
val listC = listA.switchIfEmpty(listB)
or
val listC = if(listA.isEmpty()) listB else listA
? Will every team member always remember to use that function or both variants will accumulate in the code?
👍 1