I need one liner (or close to it) that verifies that given array of 9 elements doesn\'t contain repeating numbers 1,2,3,...,9. Repeating zeroes do not count (they represent empt
For brevity if not performance, how about var itIsOk = a.Sum() == a.Distinct().Sum();