Example CpxVector cdr 011




This example shows how the the cdr function accesses the tail value of a CpxVector.



A CpxVector with a cdr value is defined.

(setq X #(cpx| 1.0 2.0 2.0 5.0 . 3.0 4.0)) Returns: #<CpxVector 188141>

The first cdr value is returned..

(cdr X) Returns: 3.0

A CpxVector without a cdr value is defined.

(setq X (new Vector: complex: 0)) Returns: #<CpxVector 244141>
(cdr X) Returns: #void

Notes and Hints

Cdr returns #void if the tail of the vector has not been set to another type.

The tail can be of any type, but it is usually either void or a complex number.


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.


Here are a number of links to other related functions.

ref(#void) refValues(#void) refAttributes(#void) setCdr(#void)


Argument Types

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


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

CpxVector addMethod 028 CpxVector append 013 CpxVector avg 002 CpxVector binaryInsert 008
CpxVector binarySearch 008 CpxVector cdr 011 CpxVector compare 020 CpxVector compareEQ 020
CpxVector compareGE 020 CpxVector compareGT 020 CpxVector compareLE 020 CpxVector compareLT 020
CpxVector compareNE 020 CpxVector copy 013 CpxVector new 015 CpxVector send 028

Analytic Information Server (AIS)

AIS Component Systems

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