public FatValueType Faslinq() { var items = ListExtensions.WhereSelect( source, item => item.IsEven(), item => item * 3); var sum = default(FatValueType); foreach (var item in items) { sum += item; } return(sum); }
public int Faslinq() { var items = ListExtensions.WhereSelect( source, item => item.IsEven(), item => item * 3); var sum = 0; foreach (var item in items) { sum += item; } return(sum); }
public FatValueType[] Faslinq() => ListExtensions.WhereSelect( source, item => item.IsEven(), item => item * 3) .ToArray();