-
Notifications
You must be signed in to change notification settings - Fork 484
M_CSharpx_EnumerableExtensions_TryHead__1
Moh.Hassan edited this page Oct 10, 2019
·
1 revision
Safe function that returns Just(first element) or None.
Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static Maybe<T> TryHead<T>(
this IEnumerable<T> source
)VB
<ExtensionAttribute>
Public Shared Function TryHead(Of T) (
source As IEnumerable(Of T)
) As Maybe(Of T)C++
public:
[ExtensionAttribute]
generic<typename T>
static Maybe<T>^ TryHead(
IEnumerable<T>^ source
)F#
[<ExtensionAttribute>]
static member TryHead :
source : IEnumerable<'T> -> Maybe<'T>
- source
- Type: System.Collections.Generic.IEnumerable(T)
- T
Type: Maybe(T)
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(T). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
CommandLineParser Class Library V2.6
Sorry, there was an error rendering this page.