Example Brick length 017

 

 

Description

These examples show that the length function uses the number of rows as basis for the Object length.

 

Details

A Brick with 2 rows and one field is defined.

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

A Brick with 2 rows and 3 fields is defined.

(define customerList (new Brick: 2 Name:Object:1 Mortagage:Number:5 Payment:Number:5)) Returns: #<Record 123456>
(length nameList) Returns: 2

 

Related Examples

Here are examples of the length function at work.

BitVector length 013 Brick length 017 Dictionary length 005 Directory length 006
FltVector length 008 IntVector length 009 List length 015 Matrix length 008
NumMatrix length 017 NumVector length 010 ObjVector length 011 ObjectRepository length 016
ObjectRepository sizeof 027 Pair length 014 PcodeVector length 012 ShortVector length 010
String length 001 String length 002 Structure length 004 Symbol length 003
Vector length 007

 

Function Links

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

length

Here are a number of links to other related functions.

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