objectToDirectory

 

 

Overview

The objectToDirectory function converts the arguments {source} into a Directory returning the new Directory. If there are two arguments, such as {vector1} and {vector2}, the items from both vectors are paired to form a Directory. If there are two arguments, and they are a combination of Structures, Dictionaries, or Directories, the values of the first argument are updated with the values of the second argument, only when the keys match. If the object is already a Directory, it is returned unchanged.

Usage

The objectToDirectory function is used to convert a Vector, Structure, or Directory object to a Directory object. The objectToDirectory function is also useful for key-based merge and update of an existing Directory, using the key-value pairs from a collection object such as a Structure or Dictionary. A Vector object may also update the values of an existing Directory.

 

Syntax


Expression:

(objectToDirectory obj)


Arguments Name Type Description
Argument:objVector Structure Dictionary A Vector, Structure or Dictionary object.

Returns:

A new Directory object.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Directory

Here are also a number of links to functions having arguments with any of these data types.

addMethod binaryInsert boolean cdr
compareEQ compareGE compareGT compareLE
compareLT compareNE compare comparison
cons copy count delete
dimension display insert inside
integer isAtom isBitVector isBoolean
isBound isByteVector isChar isCharacter
isComplex isDate isDictionary isDirectory
isEqual isError isFloatVector isIdentical
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNumberMatrix
isNumber isObjectVector isObject isString
isStructure isSymbol isText isType
isVector length loadRepository macroReplace
map mapc member money
new number objectToDirectory objectToMatrix
objectToNumMatrix objectToNumVector objectToVector offset
pair parent parse pointer
refAttributes refValues ref remove
resize saveImmediate saveObject saveRepository
setCar setCdr setLastCdr setq
sizeof sort string type
uniqueInsert vectorDelete writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

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