Answers for "c# array.reduce"

C#
0

array reduce c#

//retorna a soma de todos os itens do array
	static int simpleArraySum(int[] ar) {
        return ar.Aggregate((acc, x) => acc + x);
    }
Posted by: Guest on October-14-2020
0

c# array.reduce

var sum = number.Aggregate((x, y) => x + y);
Posted by: Guest on January-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language