Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public int[] novoArrayComItensRepetidos(int itemARepetir, int totalItens)
{
return Enumerable.Repeat(itemARepetir, totalItens).ToArray();
}
public int[] novoArraySequencial(int ultimoValor)
{
return Enumerable.Range(1, ultimoValor).ToArray();
}
public int[] novoArraySequencialMultiploDe10(int totalItens)
{
return Enumerable.Range(1, totalItens).Select(n => n * 10).ToArray();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.