1
0
Fork 0
mirror of https://gitlab.com/mfocko/CodeWars.git synced 2024-11-09 19:19:07 +01:00
CodeWars/8kyu/enumerable_magic_iii/solution.cs

12 lines
168 B
C#
Raw Normal View History

public class Kata
{
public static bool Include(int[] arr, int item)
{
foreach (var e in arr) {
if (e == item) return true;
}
return false;
}
}