C# Class LSharp.StringSequence

Wrapper that allows strings to be treated as sequences
Inheritance: Sequence
显示文件 Open project: RobBlackwell/LSharp

Public Methods

Method Description
Cons ( object o ) : ISequence
First ( ) : object
GetEnumerator ( ) : System.Collections.IEnumerator
Length ( ) : int
Nth ( int n ) : object
Rest ( ) : ISequence
StringSequence ( string s ) : System
StringSequence ( string s, int index ) : System
ToString ( ) : string

Method Details

Cons() public method

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

First() public method

public First ( ) : object
return object

GetEnumerator() public method

public GetEnumerator ( ) : System.Collections.IEnumerator
return System.Collections.IEnumerator

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

StringSequence() public method

public StringSequence ( string s ) : System
s string
return System

StringSequence() public method

public StringSequence ( string s, int index ) : System
s string
index int
return System

ToString() public method

public ToString ( ) : string
return string