Hi,
Am I missing something obvious?
Want to filter the list when one of the properties is null.
Let's say there is a class named File with Boolean property shouldCopy, and a list of those objects: files
Expression:
val excludeFiles = files.filter [ shouldCopy == null ]
reports error in syntax 'The operator '==' is undefined for the argument types boolean and null"
filterNull method does not accept parameters, meaning it can only filter if object File is null.
Yes, I can implement a workaround by changing Boolean to boolean and tweak the logic, but seems
somehow basic to have this feature, so I still believe that I am missing something obvious :-(
Thanks,
Strahinja