Created
January 22, 2016 07:20
-
-
Save vmunix/980d4bb243fc948a0eba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
namespace ConsoleApplication { | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
List<int> things = new List<int>() { 10, 20, 31, 40 }; | |
// ... Find index of first odd | |
int oddIndex = things.FindIndex(x => x % 2 != 0); | |
Console.WriteLine(oddIndex); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment