ghedeon
04/17/2018, 7:38 PMif (condition) list.add(foo)
? I think nobody doubts it's gonna work. That's not the point. Either it's possible to do it via some sort of .plusIf
in the middle or not. Not is also an answer, there is nothing bad about accepting it.