Example Brick isEqual 018

 

 

Description

These examples check if the values of the first Brick is equal to the corresponding value of the second Brick. If they are, the function returns true, otherwise, it returns false.

 

Details

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

The copied brick has a different Object ID than the original brick.

(copy nameList) Returns: #<Record 234567>

The copied Brick has the same values as the original Brick.

(isEqual #<Record 123456> #<Record 234567> ) Returns: true

The isEqual function returns false for Records with different field values.

(define nameList2 (new Brick: 2 Name:Object:1 Mortgage:Number:4 Payments:Number:9)) Returns: #<Record 345678>
(isEqual nameList nameList1 ) Returns: false

 

Related Examples

Here are examples of the isEqual function at work.

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

 

Function Links

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

isEqual

Here are a number of links to other related functions.

setq(#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