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
why did you change SubmitScore from !_scores.Any() to _scores.All(). Is this intentional? I'm not sure this is the same thing? Not any is the same as none, not all..
Your C# files are adding spaces within the paranthesis on some changes.
Old line was
!_scores.Any(s => s == score)
replaced with
_scores.All(s => s != score)
So rather than ensuring that there are not any scores that match, we ensure that no scores match at all.
That sounds equivalent, and in fact should be more optimal as the All will stop as soon as the condition fails, whereas the Any needs to check all elements before returning.
No description provided.
The text was updated successfully, but these errors were encountered: