Bizmonger.ActivePatterns NuGet Package

module ValuesAP

let (|Equal|Different|) = function
| v1, v2 when v1 = v2 -> Equal
| _ -> Different

module ListsAP

let (|None|One|Many|) (x:'a list) =
match x with
| x when x.Length > 1 -> Many
| x when x.Length = 1 -> One
| _ -> None

module NumbersAP

let (|Positive|Neutral|Negative|) = function
| x when x > 0 -> Positive
| x when x < 0 -> Negative
| _ -> Neutral.




Got any Bizmonger.ActivePatterns Question?





Info

Version: 1.0.2
Author(s): Bizmonger
Last Update: Friday, April 8, 2016
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/Bizmonger.ActivePatterns


Install
Install-Package Bizmonger.ActivePatterns
dotnet add package Bizmonger.ActivePatterns
paket add Bizmonger.ActivePatterns
Bizmonger.ActivePatterns Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

2912