This message was deleted.
# announcements
s
This message was deleted.
a
This would filter out everything if boolean == false
b
.apply{if(boolen) filter {} }
should work. Another option would be
.filter { !boolean || filterCondition }
👍 1
✌️ 1
e
The former is preferred, because the latter will iterate over the whole collection