Example Brick compare 019

 

 

Description

These examples use the compare functions to do a case-sensitive comparison of two objects of the same type. An Integer value is returned.

 

Details

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

The first Brick has greater value than the second Brick.

(compare nameList customerList) Returns: 1

 

Related Examples

Here are examples of the compare function at work.

Boolean compare 009 Brick compare 019 Character compare 010 Complex compare 021
CpxVector compare 020 Date compare 012 FltVector compare 014 Function compare 013
List compare 020 Number compare 011 ObjectRepository compare 021 ObjectRepository compare 022
Pair compare 019 String compare 001 Symbol compare 002 Void compare 008

 

Function Links

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

compare

Here are a number of links to other related functions.

compareEQ(#void) compareNE(#void) compareGT(#void) compareGE(#void)
compareLT(#void) compareLE(#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