Returns a copy of this sequence where a slice of its elements is replaced by a patch sequence.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public ISequence<T> Patch(
int from,
IEnumerable<T> patch,
int replaced
)
public ISequence<T> Patch(
int from,
IEnumerable<T> patch,
int replaced
)
Public Function Patch (
from As Integer,
patch As IEnumerable(Of T),
replaced As Integer
) As ISequence(Of T)
Public Function Patch (
from As Integer,
patch As IEnumerable(Of T),
replaced As Integer
) As ISequence(Of T)
public:
virtual ISequence<T>^ Patch(
int from,
IEnumerable<T>^ patch,
int replaced
) sealed
public:
virtual ISequence<T>^ Patch(
int from,
IEnumerable<T>^ patch,
int replaced
) sealed
abstract Patch :
from : int *
patch : IEnumerable<'T> *
replaced : int -> ISequence<'T>
override Patch :
from : int *
patch : IEnumerable<'T> *
replaced : int -> ISequence<'T>
abstract Patch :
from : int *
patch : IEnumerable<'T> *
replaced : int -> ISequence<'T>
override Patch :
from : int *
patch : IEnumerable<'T> *
replaced : int -> ISequence<'T>
Parameters
- from
- Type: System Int32
The index of the first replaced element.
- patch
- Type: System.Collections.Generic IEnumerable T
The elements with which to replace this sequence's slice.
- replaced
- Type: System Int32
The number of elements to delete from this sequence.
Return Value
Type:
ISequence T A new sequence consisting of all elements of this sequence except that
replaced elements starting from
from are replaced by
patch.
Implements
ISequence T Patch(Int32, IEnumerable T , Int32)See Also