394 packages returned for Tags:"option-type"

  • 27,006 total downloads
  • last updated 11/29/2012
  • Latest version: 1.0.2
  • may option type maybe
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... More information
  • 410 total downloads
  • last updated 4/27/2016
  • Latest version: 1.0.0.37289
  • Option type
Add an Option type like F#'s Option to create a non-nullable reference type.
  • 442 total downloads
  • last updated 2/20/2017
  • Latest version: 1.0.0
  • option type maybe
Maybe<T> is a simplistic implementation of an option type, much like Optional in Java.
Binaries for the Option type. Visit https://github.com/tejacques/Option for an overview and usage examples.
DEPRECATED: Optional.Extensions has been replaced by more specific packages. Check out Optional.Collections, Optional.Utilities etc. Extended functionality for Optional.
Option types for C# with LINQ support and rich fluent syntax for many popular uses: var maybeOne = "one".ToMaybe(); Maybe<string> maybeAnother; var maybeBoth = from one in maybeOne from another in maybeAnother select one + another; maybeBoth.Match( both =>... More information
F# style discriminated unions or C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.