7,932

Downloads

7,425

Downloads of v 1.0.2

4

Average downloads per day

2012-11-29

Last published

Share on Social Networks

May: A functional C# option type

1.0.2

Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May<T>.

Note on null: May<T> treats null like any other value. May.NoValue is distinct from null, and both are distinct from ((object)null).Maybe().

To install May: A functional C# option type, run the following command in the Package Manager Console

Install-Package Strilanc.Value.May -Version 1.0.2

Release Notes

Added utility methods for working with sequences: WhereHasValue, MayAll, MayAggregate, MayMin, MayMax, MayMinBy, MayMaxBy, MayFirst, MayLast, and MaySingle.

Owners

Authors

Craig Gidney

Copyright

Public Domain

Tags

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
May: A functional... 1.0.2 (this version) 7,425 Thursday, November 29, 2012
May: A functional... 1.0.1 327 Sunday, November 25, 2012
Strilanc.Value.May 1.0.0 180 Sunday, November 25, 2012