Beispiel #1
0
 public long GetSum() => Potteries.Cast <bool>().Select((b, i) => b ? i - ZeroIndex : 0).Sum();
Beispiel #2
0
 public override string ToString() => new string(Potteries.Cast <bool>().Select(b => b ? '#' : '.').ToArray());