Creates a finite sequence containing the given element a number of times.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public static ISequence<T> Fill<T>(
Func<T> elem,
int count
)
public static ISequence<T> Fill<T>(
Func<T> elem,
int count
)
Public Shared Function Fill(Of T) (
elem As Func(Of T),
count As Integer
) As ISequence(Of T)
Public Shared Function Fill(Of T) (
elem As Func(Of T),
count As Integer
) As ISequence(Of T)
public:
generic<typename T>
static ISequence<T>^ Fill(
Func<T>^ elem,
int count
)
public:
generic<typename T>
static ISequence<T>^ Fill(
Func<T>^ elem,
int count
)
static member Fill :
elem : Func<'T> *
count : int -> ISequence<'T>
static member Fill :
elem : Func<'T> *
count : int -> ISequence<'T>
Parameters
- elem
- Type: System Func T
The delegate to be repeatedly evaluated.
- count
- Type: System Int32
The number of times to repeat elem.
Type Parameters - T
- The type of elements in the sequence.
Return Value
Type:
ISequence T A sequence containg
count number of
elem.
See Also