length
|
The length function returns the number of elements in a Vector.
The length function returns the number of characters in a String or Text
argument.
The length function takes a Symbol argument and returns the number of
characters in the global value of a Symbol .
The length function returns the number of bindings in the Structure.
The length function returns the number of bindings in the Dictionary.
The length function returns the number of bindings in the Directory.
The length function returns the number of rows in a Brick.
The length function returns the number of elements in a Matrix.
The length function returns the number of elements in a NumMatrix.
The length function returns the number of elements in a Pair.
The length function returns the number of elements in a List.
The length function returns the number of objects currently stored in the
specified Object Repository database archive file {aGor}.
Usage The length function should be used when you need to determine the
number of elements in a Structure, Dictionary, Directory, Matrix, Vector, Pair or List. This type of counting is called a shallow
count in which embedded collection objects are counted as one. An alternate function,
the count function, performs a deep count, which is used to determine
the total number of items in an object, including the items in embedded collection
objects. The length function should be used when you need to determine the number of
characters in a Text or String. The length function should be used when you need to determine the number of
characters in a Symbol's global value. The length function should be used when you need to determine the number of
fields in a Brick. The length function is used to query the Object Repository for the number of
objects in the Object Repository. If the physical size of the Object Repository is the
information needed, see the sizeof function. String
Symbol
Structure
Dictionary
Directory
Brick
Matrix
NumMatrix
Pair
List
ObjectRepository
String
Symbol
Brick
ObjectRepository
(length vector) Returns the number of bindings in the Vector.
(length string) Returns the number of characters in the Text or String
(length symbol) Returns the number of characters in the Symbol's global value
(length struct) Returns the number of bindings in the Structure.
(length dictionary) Returns the number of bindings in the Dictionary.
(length directory) Returns the number of bindings in the Directory.
(length Brick) Returns the number of rows in the Brick.
(length matrix) Returns the number of values in the Matrix.
(length nummatrix) Returns the number of values in the NumMatrix.
(length pair) Returns the number of values in the input Pair.
(length list) Returns the number of values in the input List.
(length aGor) Returns the Number of objects in the Object Repository
Expression:
Arguments
Name
Type
Description Argument: vector Vector FltVector IntVector ShortVector NumVector ObjVector BitVector PcodeVector
The Vector which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: string Text or String
The Text or String that needs to be measured
Returns:
Expression:
Arguments
Name
Type
Description Argument: symbol Symbol
The Symbol that needs to be measured
Returns:
Expression:
Arguments
Name
Type
Description Argument: struct Structure
The structure which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: dictionary Dictionary
The Dictionary which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: directory Directory
The Directory which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: Brick Brick
The Brick which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: matrix Matrix
The Matrix which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: nummatrix NumMatrix
The NumMatrix which you want to determine the length.
Returns:
Expression:
Arguments
Name
Type
Description Argument: pair Pair
The Pair that needs to be counted
Returns:
Expression:
Arguments
Name
Type
Description Argument: list List
The List that needs to be counted
Returns:
Expression:
Arguments
Name
Type
Description Argument: aGor ObjectRepository
The ObjectRepository which will be tested.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|