All Versions
3
Latest Version
Avg Release Cycle
61 days
Latest Release
1925 days ago

Changelog History

  • v2.1.0 Changes

    August 29, 2019

    ๐Ÿ“ฆ Optuple package on nuget.org

    What's New

    • Extension methods for a sequences:
    • Extension methods for a sequence of options:
      • Filter (sequence of option of x โ†’ sequence of x for some of x)
      • ListAll (sequence of option of x โ†’ some sequence of x if all options are some of x)
    • ๐Ÿ“„ ToOption extension for Group & subclasses (like Match) that returns some group if group matched.
  • v2.0.0 Changes

    August 22, 2019

    ๐Ÿ“ฆ Optuple package on nuget.org

    What's New

    ๐Ÿ“„ There is a new type called OptionModule that is designed to be statically imported, like so:

    using static Optuple.OptionModule;
    

    This will make the following common methods available for use without type qualification:

    • Some
    • None<>
    • SomeWhen
    • NoneWhen

    This permits you to, for example, simply write Some(42) and None<int>() instead of Option.Some(42) and None<int>(), respectively.

    ๐Ÿ’ฅ Breaking Changes

    The methods below on Option were completely redundant. They were accidentally leaked from an older design and have been removed in this release to avoid confusion.

    public static (bool HasValue, T Value) From<T>((bool, T) option)
    public static (bool HasValue, T Value) ToOption<T>(this (bool HasValue, T Value) option)
    public static (bool HasValue, T Value) Flagged<T>(this (bool HasValue, T Value) option)

    The removal of these methods is the primary reason for bumping the major version number to 2. Otherwise, all other types and their members remain unchanged.

  • v1.0.0 Changes

    April 29, 2019

    ๐Ÿš€ This is the initial release! ๐ŸŽ‰

    ๐Ÿ‘€ See also: