Example Brick cdr 010

 

 

Description

These examples show the cdr function retrieve the cdr value in the Brick.

 

Details

(define nameList (new Brick: 1 Name:Object:3)) Returns: #<Brick 123456>

This sets the cdr value.

(setCdr nameList "This is a note") Returns: #<Brick 123456>

Retrieves the cdr value.

(cdr nameList) Returns: This is a note

Retrieves the cdr value.

(length nameList) Returns: The cdr value is not accessible by the length function.

Notes and Hints

The cdr is not reachable by the dot or bracket operators.

 

Related Examples

Here are examples of the cdr function at work.

BitVector cdr 010 Brick cdr 010 CpxVector cdr 011 Dictionary cdr 003
Directory cdr 004 FltVector cdr 006 IntVector cdr 007 List cdr 009
Matrix cdr 007 Matrix cdr 008 NumMatrix cdr 011 NumVector cdr 008
ObjVector cdr 009 ShortVector cdr 008 Structure cdr 001 Structure cdr 002
Vector cdr 005 Vector cdr 006

 

Function Links

Here is the link to the current function used in this example.

cdr

Here are a number of links to other related functions.

setCdr(Brick)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Brick

Here are a number of links to examples having similar argument types.

Brick addMethod 008 Brick cdr 010 Brick compare 019 Brick compareEQ 019
Brick compareGT 019 Brick compareLE 019 Brick compareLT 019 Brick compareNE 019
Brick comparison 019 Brick copy 012 Brick defmethod 025 Brick isAtom 011
Brick isEqual 018 Brick isIdentical 020 Brick isObject 014 Brick isType 022
Brick length 017 Brick methodsOf 024 Brick new 015 Brick ref 036
Brick send 027 Brick setCdr 014 Brick setq 029 Brick setq 28
Brick sizeof 029 Brick type 026

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.