C# Class clojure.lang.StringSeq

Inheritance: clojure.lang.ASeq, IndexedSeq
显示文件 Open project: arohner/clojure-contrib Class Usage Examples

Public Methods

Method Description
count ( ) : int

Gets the number of items in the collection.

The Java version does not define this. Defaults to ASeq's iteration method. Seems wasteful

create ( string s ) : StringSeq

Create a StringSeq from a String.

first ( ) : object

Gets the first item.

index ( ) : int

Gets the index associated with this sequence.

rest ( ) : ISeq

Gets the rest of the sequence.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Private Methods

Method Description
StringSeq ( IPersistentMap meta, string s, int i ) : System

Construct a StringSeq from given metadata, string, position.

Method Details

count() public method

Gets the number of items in the collection.
The Java version does not define this. Defaults to ASeq's iteration method. Seems wasteful
public count ( ) : int
return int

create() public static method

Create a StringSeq from a String.
public static create ( string s ) : StringSeq
s string
return StringSeq

first() public method

Gets the first item.
public first ( ) : object
return object

index() public method

Gets the index associated with this sequence.
public index ( ) : int
return int

rest() public method

Gets the rest of the sequence.
public rest ( ) : ISeq
return ISeq

withMeta() public method

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
return IObj