Skip to content

M_CSharpx_Maybe_Merge__2

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

Maybe.Merge(T1, T2) Method

If both maybes contain a value, it merges them into a maybe with a tupled value.

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

Syntax

C#

public static Maybe<Tuple<T1, T2>> Merge<T1, T2>(
	Maybe<T1> first,
	Maybe<T2> second
)

VB

Public Shared Function Merge(Of T1, T2) ( 
	first As Maybe(Of T1),
	second As Maybe(Of T2)
) As Maybe(Of Tuple(Of T1, T2))

C++

public:
generic<typename T1, typename T2>
static Maybe<Tuple<T1, T2>^>^ Merge(
	Maybe<T1>^ first, 
	Maybe<T2>^ second
)

F#

static member Merge : 
        first : Maybe<'T1> * 
        second : Maybe<'T2> -> Maybe<Tuple<'T1, 'T2>> 

Parameters

 

first
Type: CSharpx.Maybe(T1)
second
Type: CSharpx.Maybe(T2)

Type Parameters

 

T1
T2

Return Value

Type: Maybe(Tuple(T1, T2))

See Also

Reference

Maybe Class
CSharpx Namespace

Clone this wiki locally