[Extension()] public static ICodeMetric<TCodeElement,ushort> FillIterative<TCodeElement>( IEnumerable<TCodeElement> initialSeq, Func<IEnumerable<TCodeElement>,IEnumerable<TCodeElement>> func ) where TCodeElement: class, ICodeElement
Parameters
- initialSeq
- The initial sequence of code elements consumed by the first iteration.
- func
- The function used to compute new elements of the iteration N+1 from new elements computed at iteration N.
Type Parameters
- TCodeElement
- The code element type that is ICodeElement or that implements ICodeElement.
Return Value
A new ICodeMetric<TCodeElement,TNumeric> object. The code metric value for each element in DefinitionDomain is the iteration number when it was added. Value for code elements in initialSeq is 0.