methods such as removeWhere, retainWhere etc. should return information #15703
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
core-n
library-core
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @xximranxx
The list function removeWhere, retainWhere etc. are great functions.
But they return void.
It would be even better if they returned e.g. the number of elements removed or retained etc.
Lets say I want to remove certain elements in a list and if I did, then do something else something else.
At the moment, I would have to to firstWhere to check whether any element matches the criteria and then removeWhere.
Please correct me if this is already possible and I missed it
Thanks,
Imran
The text was updated successfully, but these errors were encountered: