stupid question, but is it possible to add hmm.. n...
# announcements
g
stupid question, but is it possible to add hmm.. nothing to collection?)) Let say you transform your collection in a fluent manner and want to add an element under a certain condition:
Copy code
list.add(if (condition) foo else bar)
this works, because
else
is present, but what if I don't want to add anything when condition is false?