objectToStructure

 

 

Overview

The objectToStructure function converts the arguments {source} into a Structure returning the new Structure. The {source} may be either a Vector or a Dictionary. If there are two arguments, such as {vector1} and {vector2}, the items from both vectors are paired to form a Structure. 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 Structure, it is returned unchanged.

Usage

The objectToStructure function is used to convert a Vector object or a Dictionary object to a Structure object. The objectToStructure function is also useful for key-based merge and update of a Structure, Dictionary, or Directory from another Structure, Dictionary, Directory, or Vector.

 

Syntax

 

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.

Structure

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

addMethod append apply binaryInsert
boolean cdr class compareEQ
compareGE compareGT compareLE compareLT
compareNE compare comparison cons
copy count debugDetective defineStructure
defstruct delete dimension display
exportCsv exportSbf exportTab fieldsOf
importCsv importSbf importTab insert
inside integer isAtom isBitVector
isBoolean isBound isByteVector isChar
isCharacter isClass isComplex isDate
isDictionary isDirectory isEqual isError
isFloatVector isIdentical isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNumberMatrix isNumberVector isNumber
isObjectVector isObject isPair isPcodeVector
isString isStructure isSymbol isText
isType isVector length list
macroReplace makeQuotedList makeStructure map
mapc member money new
number objectToList objectToMatrix objectToNumMatrix
objectToNumVector objectToStructure objectToVector offset
pair parent parse pointer
proprecord putprop refAttributes refValues
ref remProp remove resize
saveObject send setCar setCdr
setLastCdr setq sizeof sort
string super svmRegression type
uniqueInsert vectorFill writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

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