Skip to content

T_CodeJam_Collections_Sequence

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

Sequence Class

Contains methods for sequence creation.

Inheritance Hierarchy

System.Object
  CodeJam.Collections.Sequence
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class Sequence

VB

Public NotInheritable Class Sequence

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type Sequence =  class end

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

CodeJam.Collections Namespace

Clone this wiki locally