Here 0.6.1
.NET library that provide mainly functional features for C#.
This means concept of Maybe (Monad) and Result.
Supported platforms:
- .NET Standard 1.1+
- .NET Core 1.0+
- .NET Framework 2.0+
See the version list below for details.
Install-Package Here -Version 0.6.1
dotnet add package Here --version 0.6.1
<PackageReference Include="Here" Version="0.6.1" />
paket add Here --version 0.6.1
Release Notes
➟ Release 0.6.0
- For Maybes:
- Add == and != operators to compare a value directly with the wrapped one.
- Add extensions to unwrap the Maybe value.
- Add Exists extension which is equivalent to Any with a predicate.
- Add extension to extract values from an enumerable of Maybe.
- Add extensions to convert a Maybe to Enumerable/Enumerator.
- Add extensions SingleOrNone and ElementAt on IEnumerable<T>.
- Add an explicit Flatten extension.
- Add extensions to perform treatments on Maybe that wrap an IEnumerable (for each, any, where, etc).
- Make Maybe<T> IComparable and IComparable<Maybe<T>>.
- For Results:
- Add == and != operators to compare a value directly with the wrapped one.
- Implement equals, == and != operators to compare results with a result of same type.
- WARNING: Remove implicit conversions to boolean that produce unwanted behaviors when trying to compare results.
- Add a Result scope to run a simple action.
- Add a SuccessEquals method for each result type and associated static helpers.
- Make result structures IComparable and IComparable<TResult>.
Dependencies
-
.NETFramework 2.0
- JetBrains.Annotations (>= 2018.2.1)
- System.Core (>= 3.5.21022.801)
-
.NETFramework 3.0
- JetBrains.Annotations (>= 2018.2.1)
- System.Core (>= 3.5.21022.801)
-
.NETFramework 3.5
- JetBrains.Annotations (>= 2018.2.1)
-
.NETFramework 4.0
- JetBrains.Annotations (>= 2018.2.1)
-
.NETFramework 4.5
- JetBrains.Annotations (>= 2018.2.1)
-
.NETFramework 4.5.2
- JetBrains.Annotations (>= 2018.2.1)
-
.NETStandard 1.1
- JetBrains.Annotations (>= 2018.2.1)
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 2.0
- JetBrains.Annotations (>= 2018.2.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.