Comments (2)
I also think that Max, Min, MaxBy and MinBy would benefit from having
...IsDefault methods.
I think though that if returning a value type, the return type should be a
nullable if possible.
Original comment by [email protected]
on 25 Jul 2015 at 12:36
from morelinq.
If you want null out for a value type then you can achieve this by
emptyEnemurable.MaxByOrDefault<Nullable<UInt32>>(person => person.Age);
Assert.Equal(null, result);
or
emptyEnumerable.MaxBy<Nullable<UInt32>>(person => person.Age, null);
Assert.Equal(null, result);
Original comment by [email protected]
on 25 Jul 2015 at 5:19
from morelinq.
Related Issues (20)
- Usage example for SingleOrFallback HOT 7
- converting IEnumerable<TSource> into IEnumerable<IEnumerable<TSource>>? HOT 1
- Buffering HOT 1
- Please make .NET 4 compatible distribution (or allow silent modifications)
- Interleave irregular enumerables with circular strategy HOT 4
- TakeLast example incorrect HOT 5
- Patch for /MoreLinq/DistinctBy.cs HOT 2
- Implement Full Outer Join
- ExpandoObject inclusion HOT 4
- Patch for /MoreLinq/EquiZip.cs
- Change ArgumentNullException to early return. HOT 1
- Scan should not throw on empty sequences
- Batch should return an IEnumerable<IList<T>> HOT 1
- Migrate to GitHub/BitBucket HOT 14
- add Memoize support HOT 1
- ForEach should optionally take an index HOT 2
- ToDataTable throws on type with public static member HOT 6
- It would be nice to have a Top operator that would merge OrderBy and Take
- F# countBy analogue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morelinq.