C# 클래스 clojure.lang.Cons

Implements an immutable cons cell.
상속: clojure.lang.ASeq
파일 보기 프로젝트 열기: arohner/clojure-contrib 1 사용 예제들

공개 메소드들

메소드 설명
Cons ( IPersistentMap meta, object first, ISeq rest ) : System

Initializes a Cons with the given metadata and first/rest.

Cons ( object first, ISeq rest ) : System

Initializes a Cons with null metadata and given first/rest.

first ( ) : Object

Gets the first item.

rest ( ) : ISeq

Gets the rest of the sequence.

seq ( ) : ISeq

Gets an ISeq to allow first/rest iteration through the collection.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

메소드 상세

Cons() 공개 메소드

Initializes a Cons with the given metadata and first/rest.
public Cons ( IPersistentMap meta, object first, ISeq rest ) : System
meta IPersistentMap The metadata to attach.
first object The first value.
rest ISeq The rest of the sequence.
리턴 System

Cons() 공개 메소드

Initializes a Cons with null metadata and given first/rest.
public Cons ( object first, ISeq rest ) : System
first object The first value.
rest ISeq The rest of the sequence.
리턴 System

first() 공개 메소드

Gets the first item.
public first ( ) : Object
리턴 Object

rest() 공개 메소드

Gets the rest of the sequence.
public rest ( ) : ISeq
리턴 ISeq

seq() 공개 메소드

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
리턴 ISeq

withMeta() 공개 메소드

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