We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Creates a sequence from start value and next element factory till factory returns null.
Namespace: CodeJam.CollectionsAssembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static IEnumerable<TResult> CreateWhileNotNull<T, TResult>( T start, Func<T, T> next, Func<T, TResult> resultSelector ) where T : class
VB
Public Shared Function CreateWhileNotNull(Of T As Class, TResult) ( start As T, next As Func(Of T, T), resultSelector As Func(Of T, TResult) ) As IEnumerable(Of TResult)
F#
static member CreateWhileNotNull : start : 'T * next : Func<'T, 'T> * resultSelector : Func<'T, 'TResult> -> IEnumerable<'TResult> when 'T : not struct
Type: IEnumerable(TResult)Generated sequence.
Sequence ClassCreateWhileNotNull OverloadCodeJam.Collections Namespace