int sumBy(int Function(T element) judgeFunc) { int sum = 0; forEach((element) { sum += judgeFunc(element); }); return sum; }