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
Mapping an array requires maintaining an index mapping, which is superfluous when we're going to ignore the ordering anyway; so array.map{$0.someInteger}.sum() does extra work.
The text was updated successfully, but these errors were encountered:
Ugh, not really. If the key is not observable, then reduce's add and remove can already extract it on the fly. If it is observable, then it may change on its own, so array.map{$0.someInteger}.reduce(…) is the way to go.
Mapping an array requires maintaining an index mapping, which is superfluous when we're going to ignore the ordering anyway; so
array.map{$0.someInteger}.sum()
does extra work.The text was updated successfully, but these errors were encountered: