Produces a new sequence where a slice of elements in this sequence is replaced by another sequence.
Namespace: FlinqAssembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
C# |
---|
public static IEnumerable<A> Patch<A>( this IEnumerable<A> source, int from, IEnumerable<A> patch, int replaced ) |
Parameters
- source
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The original sequence of elements.
- from
- Type: System..::..Int32
The index of the first replaced element.
- patch
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The sequence of elements to replace a slice in the original sequence.
- replaced
- Type: System..::..Int32
The number of elements to drop in the original sequence.
Type Parameters
- A
- The type of the elements of source.
Return Value
Type: IEnumerable<(Of <(<'A>)>)>The output sequence.