I'm not sure if this is the right place to ask this, I'm sorry if not.
using the same code as in:
string[] digits = { "zero", "one", "two", "three", "four", "five",
"six", "seven", "eight", "nine" };
var shortDigits = digits.Where((digit, index) => digit.Length < index);
foreach (var sD in shortDigits)
{
Console.WriteLine(sD);
}
// Output:
// five
// six
// seven
// eight
// nine
How does the system know that, digit
are the items in digits, and index
the position within the array?