Answers for "reduce() in c#"

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
0

array reduce c#

Enumerable.Range(1, 10).Select(x => x + 2);
Posted by: Guest on April-04-2022

C# Answers by Framework

Browse Popular Code Answers by Language