Skip to content

Instantly share code, notes, and snippets.

View jpprobr's full-sized avatar

João Paulo S. Araújo jpprobr

View GitHub Profile
@jpprobr
jpprobr / conjuntos-demo1.cs
Last active February 27, 2023 01:13
JPlay Demos - Conjuntos + C# + LINQ
int[] conjuntoA = new int[] { 1, 2, 3, 4, 5 };
int[] conjuntoB = new int[] { 4, 5, 6, 7, 8 };
ExibirResultado("Conjunto A", conjuntoA);
ExibirResultado("Conjunto B", conjuntoB);
var uniao = conjuntoA.Union(conjuntoB);
ExibirResultado("União", uniao);