Skip to content

M_CodeJam_Collections_Sequence_CreateSingle__1

andrewvk edited this page Nov 5, 2016 · 3 revisions

Sequence.CreateSingle(T) Method (Func(T))

Creates a single element sequence.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public IEnumerable<T> CreateSingle<T>(
	Func<T> elementFactory
)

VB

Public Function CreateSingle(Of T) ( 
	elementFactory As Func(Of T)
) As IEnumerable(Of T)

F#

member CreateSingle : 
        elementFactory : Func<'T> -> IEnumerable<'T> 

Parameters

 

elementFactory
Type: System.Func(T)
Element factory.

Type Parameters

 

T
The type of element.

Return Value

Type: IEnumerable(T)
Single element sequence

See Also

Reference

Sequence Class
CreateSingle Overload
CodeJam.Collections Namespace

Clone this wiki locally