Home
Insert
Update snippet 'Quick Positive Infinity'
Title
Passcode
Description
A simple trick for defining positive infinity semantics.
Source code
type Neg<'T when 'T : comparison> = NegativeInfinity | N of 'T type Pos<'T when 'T : comparison> = P of 'T | PositiveInfinity N "hello" > NegativeInfinity P 2 < PositiveInfinity
Tags
positive infinity
positive infinity
Author
Link
Reference NuGet packages
If your snippet has external dependencies, enter the names of NuGet packages to reference, separated by a comma (
#r
directives are not required).
Update