C# Class LSharp.ArraySequence

Encapsulates an array and treats it as a sequence
Inheritance: Sequence
Exibir arquivo Open project: RobBlackwell/LSharp

Public Methods

Method Description
ArraySequence ( Array array ) : System
Cons ( object item ) : ISequence
First ( ) : object
Length ( ) : int
Nth ( int n ) : object
Rest ( ) : ISequence

Private Methods

Method Description
ArraySequence ( Array array, int index ) : System

Method Details

ArraySequence() public method

public ArraySequence ( Array array ) : System
array System.Array
return System

Cons() public method

public Cons ( object item ) : ISequence
item object
return ISequence

First() public method

public First ( ) : object
return object

Length() public method

public Length ( ) : int
return int

Nth() public method

public Nth ( int n ) : object
n int
return object

Rest() public method

public Rest ( ) : ISequence
return ISequence