Returns a new sequence in which the end is padded with elem, if this sequence has less elements than length.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public ISequence<T> PadTo(
int length,
T elem
)
public ISequence<T> PadTo(
int length,
T elem
)
Public Function PadTo (
length As Integer,
elem As T
) As ISequence(Of T)
Public Function PadTo (
length As Integer,
elem As T
) As ISequence(Of T)
public:
virtual ISequence<T>^ PadTo(
int length,
T elem
) sealed
public:
virtual ISequence<T>^ PadTo(
int length,
T elem
) sealed
abstract PadTo :
length : int *
elem : 'T -> ISequence<'T>
override PadTo :
length : int *
elem : 'T -> ISequence<'T>
abstract PadTo :
length : int *
elem : 'T -> ISequence<'T>
override PadTo :
length : int *
elem : 'T -> ISequence<'T>
Parameters
- length
- Type: System Int32
The number of elements to pad into the sequence.
- elem
- Type: T
The element to use for padding.
Return Value
Type:
ISequence T A new sequence in which the end is padded with
elem, if this sequence has less elements than
length.
Implements
ISequence T PadTo(Int32, T)See Also