Skip to content

M_CSharpx_Maybe_Map__2

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

Maybe.Map(T1, T2) Method

Transforms an maybe value by using a specified mapping function.

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

Syntax

C#

public static Maybe<T2> Map<T1, T2>(
	Maybe<T1> maybe,
	Func<T1, T2> func
)

VB

Public Shared Function Map(Of T1, T2) ( 
	maybe As Maybe(Of T1),
	func As Func(Of T1, T2)
) As Maybe(Of T2)

C++

public:
generic<typename T1, typename T2>
static Maybe<T2>^ Map(
	Maybe<T1>^ maybe, 
	Func<T1, T2>^ func
)

F#

static member Map : 
        maybe : Maybe<'T1> * 
        func : Func<'T1, 'T2> -> Maybe<'T2> 

Parameters

 

maybe
Type: CSharpx.Maybe(T1)
func
Type: System.Func(T1, T2)

Type Parameters

 

T1
T2

Return Value

Type: Maybe(T2)

See Also

Reference

Maybe Class
CSharpx Namespace

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy