You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FilterMap function return a value and a bool value to identify skip current value or not. If the return bool value is false then no need to return the value( just zero or nil) enough, is there a way to defer the object creation? My case is use FilterMap to process a huge collection
The text was updated successfully, but these errors were encountered:
@kcmvp, even if the value is returned it will not be used anywhere. So there the object creation is being done in the callback function. If you want the the return of bool when false should be zero or nil , you can write that implementation in the callback function itself.
FilterMap function return a value and a bool value to identify skip current value or not. If the return bool value is false then no need to return the value( just zero or nil) enough, is there a way to defer the object creation? My case is use FilterMap to process a huge collection
The text was updated successfully, but these errors were encountered: