Created
August 7, 2020 18:13
-
-
Save JohnMGant/de1d8e3424b756b2d1f1c9a748958f72 to your computer and use it in GitHub Desktop.
Adds an array of integers in C# using Sum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class LinqSumAdder : IIntegerAdder | |
| { | |
| public int Add(int[] values) => values.Sum(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment