Where clause in LINQ
"Bengal","Daman and Diu","Goa","Haryana","Kashmir","Kerala","Laccadives","NCT"
,"Rajasthan","Andhra Pradesh" ,"Arunāchal Pradesh","Assam","Bihār","Chhattīsgarh"
,"Gujarāt","Himāchal Pradesh","Jharkhand","Karnātaka","Madhya Pradesh","Mahārāshtra"
,"Manipur","Meghālaya","Mizoram","Nāgāland","Odisha","Punjab","Sikkim","Tamil Nādu"
,"Tripura","Andaman and Nicobar Islands","Chandīgarh","Dādra and Nagar Haveli"
,"Puducherry","Uttar Pradesh","Uttarakhand" };
//public static IEnumerable<T> Where<T>( this IEnumerable<T> source, Func<T, bool> predicate);
IEnumerable<string> sequence = states.Where(p => p.StartsWith("J"));
foreach (string s in sequence) Console.WriteLine("{0}", s);
//public static IEnumerable<T> Where<T>( this IEnumerable<T> source, Func<T, int, bool> predicate);
IEnumerable<string> sequence2 = states.Where((p, i) => (p.StartsWith("J")) &&((i & 1) == 1));
foreach (string s in sequence2) Console.WriteLine("{0}", s);