Skip to content

Methods_T_CodeJam_Collections_Sequence

Andrew Koryavchenko edited this page Jul 4, 2017 · 2 revisions

Sequence Methods

Methods

 

Name Description
Public methodStatic member Create(T)(T, Func(T, T)) Creates a sequence from start value and next element factory.
Public methodStatic member Create(T)(T, Func(T, Boolean), Func(T, T)) Creates a sequence from start value and next element factory.
Public methodStatic member Create(T, TResult)(T, Func(T, T), Func(T, TResult)) Creates a sequence from start value and next element factory.
Public methodStatic member Create(T, TResult)(T, Func(T, Boolean), Func(T, T), Func(T, TResult)) Creates a sequence from start value and next element factory.
Public methodStatic member CreateSingle(T)(Func(T)) Creates a single element sequence.
Public methodStatic member CreateSingle(T)(T) Creates a single element sequence.
Public methodStatic member CreateWhileNotNull(T)(T, Func(T, T)) Creates a sequence from start value and next element factory till factory returns null.
Public methodStatic member CreateWhileNotNull(T, TResult)(T, Func(T, T), Func(T, TResult)) Creates a sequence from start value and next element factory till factory returns null.
Public methodStatic member Random(Int32) Creates infinite sequence of random int numbers;
Public methodStatic member Random(Int32, Int32) Creates infinite sequence of random int numbers;
Public methodStatic member Random(Int32, Int32, Int32) Creates infinite sequence of random int numbers;
  Back to Top

See Also

Reference

Sequence Class
CodeJam.Collections Namespace

Clone this wiki locally