Intersoft ClientUI Documentation
Iterate<T> Method



The type of the sequence.
The initial value.
The function to apply to the value.
Creates a sequence of values by accepting an initial value, an iteration function, and apply the iteration function recursively.
Syntax
Public Shared Function Iterate(Of T)( _
   ByVal value As T, _
   ByVal nextFunction As Func(Of T,T) _
) As IEnumerable(Of T)
Dim value As T
Dim nextFunction As Func(Of T,T)
Dim value As IEnumerable(Of T)
 
value = IEnumerableHelper.Iterate(Of T)(value, nextFunction)
public static IEnumerable<T> Iterate<T>( 
   T value,
   Func<T,T> nextFunction
)
public:
static IEnumerable<T^>^ Iterategeneric<typename T>
( 
   T^ value,
   Func<T^,T^>^ nextFunction
) 

Parameters

value
The initial value.
nextFunction
The function to apply to the value.

Type Parameters

T
The type of the sequence.

Return Value

A sequence of the iterated values.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IEnumerableHelper Class
IEnumerableHelper Members

Send Feedback