Created
May 29, 2022 20:44
-
-
Save pmatos2000/1a94640f8b83bb999c8334bb45249cbe to your computer and use it in GitHub Desktop.
This file contains 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
var vetor = new int[] {1, 2, 3}; | |
var vetorModificado = vetor | |
.Select(elemento => | |
{ | |
Console.WriteLine(elemento); | |
return elemento; | |
}) | |
.Select(elemento => { | |
var novoElemento = 2 * elemento; | |
Console.WriteLine(novoElemento); | |
return elemento; | |
}) | |
.ToArray(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment