Example Brick setCdr 014

 

 

Description

These examples show the setCdr set a Structure as the cdr value of a Brick.

 

Details

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

This sets the cdr value.

(setCdr nameList "This is a note") Returns: #<Record 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 setCdr function at work.

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

 

Function Links

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

setCdr

Here are a number of links to other related functions.

cdr(#void)

 

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

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE