Eric Deloak
1
Q:

array reduce c#

    //retorna a soma de todos os itens do array
	static int simpleArraySum(int[] ar) {
        return ar.Aggregate((acc, x) => acc + x);
    }
0

New to Communities?

Join the community