Skip to content

M_CSharpx_Maybe_Return__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Maybe.Return(T) Method

Inject a value into the monadic Maybe(T) type.

Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static Maybe<T> Return<T>(
	T value
)

VB

Public Shared Function Return(Of T) ( 
	value As T
) As Maybe(Of T)

C++

public:
generic<typename T>
static Maybe<T>^ Return(
	T value
)

F#

static member Return : 
        value : 'T -> Maybe<'T> 

Parameters

 

value
Type: T

Type Parameters

 

T

Return Value

Type: Maybe(T)

See Also

Reference

Maybe Class
CSharpx Namespace

Clone this wiki locally