Skip to content

M_CodeJam_Collections_Sequence_CreateSingle__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

Sequence.CreateSingle(T) Method (T)

Creates a single element sequence.

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

Syntax

C#

public static IEnumerable<T> CreateSingle<T>(
	T element
)

VB

Public Shared Function CreateSingle(Of T) ( 
	element As T
) As IEnumerable(Of T)

F#

static member CreateSingle : 
        element : 'T -> IEnumerable<'T> 

Parameters

 

element
Type: T
Element instance to create sequence from.

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