A unit/nothing type for C#
$ dotnet add package Dev.ComradeVanti.NothingNothing is a type representing the absence of data, similarly to Unit in
F#.
Use it as a return value from methods where you would traditionally return void.
Nothing exposes a single static readonly instance called Nothing.atAll. This
instance is equal to itself using both == and Equals.
The package also includes a few useful extension methods which are listed below.
Task to a Task<Nothing> using the ToNothingTask methodAction to a Func<Nothing> using the ToNothingFunc method.
Works with up to 3 parametersNothing with the Discard method