T_CSharpx_Maybe - adutton/commandline GitHub Wiki
Provides static methods for manipulating Maybe.
System.Object
CSharpx.Maybe
Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
internal static class MaybeVB
Friend NotInheritable Class MaybeC++
internal ref class Maybe abstract sealedF#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type Maybe = class endThe Maybe type exposes the following members.
| Name | Description | |
|---|---|---|
![]()
|
Bind(T1, T2) | Sequentially compose two actions, passing any value produced by the first as an argument to the second. |
![]()
|
Just(T) | Builds the case when Maybe contains a value. |
![]()
|
Map(T1, T2) | Transforms an maybe value by using a specified mapping function. |
![]()
|
Merge(T1, T2) | If both maybes contain a value, it merges them into a maybe with a tupled value. |
![]()
|
Nothing(T) | Builds the empty case of Maybe. |
![]()
|
Return(T) | Inject a value into the monadic Maybe(T) type. |
