Skip to content

Question of the day: Jan 13'th. Alternative solution with no side effects.#1

Open
PezzA wants to merge 2 commits into
karenpayneoregon:masterfrom
PezzA:master
Open

Question of the day: Jan 13'th. Alternative solution with no side effects.#1
PezzA wants to merge 2 commits into
karenpayneoregon:masterfrom
PezzA:master

Conversation

@PezzA
Copy link
Copy Markdown

@PezzA PezzA commented Jan 14, 2024

Firstly, thanks for great twitter content! I've learned more than a thing or two from your twitter feed.

As discussed here is an alternative solution to Jan 13'th using Enumerable.Max(). This also has the interesting quality of not mutating the original array (in case ordering of the source array is important).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants