DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.4.0" />

.NET API 473,608 bytes

 IOptionMonad<T, TSelf>

public interface IOptionMonad<T, TSelf> : IOptionMonad<T>, ISupplier<object> where TSelf : struct, IOptionMonad<T, TSelf>
Represents common interface for all option monads.
T op_Explicit(ref TSelf container)

Attempts to extract the value from the container.

bool op_False(ref TSelf container)

Checks whether the container has no value.

TSelf op_Implicit(T value)

Places the value to the container.

bool op_True(ref TSelf container)

Checks whether the container has value.