Returns a copy of this sequence with one single replaced element.
If index is greater than the number of elements in this sequence, nothing will be replaced.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public ISequence<T> Updated(
int index,
T elem
)
public ISequence<T> Updated(
int index,
T elem
)
Public Function Updated (
index As Integer,
elem As T
) As ISequence(Of T)
Public Function Updated (
index As Integer,
elem As T
) As ISequence(Of T)
public:
virtual ISequence<T>^ Updated(
int index,
T elem
) sealed
public:
virtual ISequence<T>^ Updated(
int index,
T elem
) sealed
abstract Updated :
index : int *
elem : 'T -> ISequence<'T>
override Updated :
index : int *
elem : 'T -> ISequence<'T>
abstract Updated :
index : int *
elem : 'T -> ISequence<'T>
override Updated :
index : int *
elem : 'T -> ISequence<'T>
Parameters
- index
- Type: System Int32
The position of the replacement.
- elem
- Type: T
The replacing element.
Return Value
Type:
ISequence T A copy of this sequence with the element at position
index replaced by
elem.
Implements
ISequence T Updated(Int32, T)See Also