Example List isIdentical 018

 

 

Description

The isIdentical function compares the object ID of the List arguments. In this example the copy and setq functions are used to illustrate how the isIdentical function behaves.

 

Details

The first List.

(setq A ' ( 1 2 3) ) Returns: #<Pair 123456>

The second List.

(setq B ' ( 1 2 3) ) Returns: #<Pair 234567>

The copied List has a different Object ID.

(setq C (copy A)) Returns: #<Pair 345678>

List D has the same Object Id as List A.

(setq D A) Returns: #<Pair 123456>

A and B do not have identical Object IDs.

(isIdentical A B) Returns: false

B and C do not have identical Object IDs.

(isIdentical B C) Returns: false

D and A have identical Object IDs.

(isIdentical D A) Returns: true

 

Related Examples

Here are examples of the isIdentical function at work.

BitVector isIdentical 017 Boolean isIdentical 007 Brick isIdentical 020 Character isIdentical 008
Date isIdentical 010 Dictionary isIdentical 002 Directory isIdentical 003 Error isIdentical 007
FltVector isIdentical 012 Function isIdentical 011 IntVector isIdentical 013 List isIdentical 018
Matrix isIdentical 005 NumMatrix isIdentical 020 NumVector isIdentical 014 Number isIdentical 009
ObjVector isIdentical 015 ObjectRepository isIdentical 019 Pair isIdentical 017 PcodeVector isIdentical 016
ShortVector isIdentical 014 Structure isIdentical 001 Vector isIdentical 004 Void isIdentical 006

 

Function Links

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

isIdentical

Here are a number of links to other related functions.

compareEQ(#void) comparison(#void) isEqual(#void)

 

Argument Types

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

List

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

BitVector isAtom 010 Dictionary isAtom 002 Directory isAtom 003 FltVector isAtom 005
IntVector isAtom 006 List associate 001 List c..r 001 List c..r 002
List car 001 List cdr 009 List compare 020 List compareEQ 020
List compareGE 020 List compareGT 020 List compareLE 020 List compareLT 020
List compareNE 020 List comparison 020 List compile 002 List copy 010
List eval 002 List eval 003 List inside 008 List isAtom 011
List isEqual 019 List isIdentical 018 List isInside 010 List isMember 009
List isObject 015 List isPair 002 List last 001 List list 001
List makeQuotedList 001 List mapc 009 List member 009 List morph 001
List morph 002 List objectToList 001 List quote 001 List quote 002
List quote 003 List ref 028 List reverse 003 List setCar 002
List setCdr 011 List setLastCdr 011 List setq 025 List setq 026
List sizeof 022 List sort 018 List sort 019 Matrix isAtom 005
NumMatrix isAtom 012 NumVector isAtom 007 ObjVector isAtom 008 Pair append 011
Pair associate 001 Pair car 001 Pair isAtom 010 Pair isEqual 018
Pair isInside 009 Pair isMember 008 Pair isPair 001 Pair map 008
Pair mapc 008 Pair pair 001 Pair setCar 001 Pair type 023
PcodeVector isAtom 009 ShortVector isAtom 007 Structure isAtom 001 Vector isAtom 004

Analytic Information Server (AIS)

AIS Component Systems

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