inside

 

 

Overview

The inside function searches the Vector argument {vector} for the match of the search object argument {obj} and returns the index where {obj} was found. If the {obj} was not found, false is returned. The inside function uses the isIdentical predicate.

Structure

The inside function takes a key as an argument and a Structure as a second argument and returns the index where the key was found. If the key was not found, the inside function returns false. The inside function uses the isIdentical predicate.

Dictionary

The inside function takes a key as an argument and a Dictionary as a second argument and returns the index where the key was found. If the key was not found, the inside function returns false. The inside function uses the isIdentical predicate.

Directory

The inside function takes a key as an argument and a Directory as a second argument and returns the index where the key was found. If the key was not found, the inside function returns false. The inside function uses the isIdentical predicate.

Matrix

The inside function searches the Matrix argument {matrix} for the match of the search object argument {obj} and returns the index where {obj} was found. If the {obj} was not found, false is returned. The member function uses the isIdentical predicate.

NumMatrix

The inside function searches the NumMatrix argument {nummatrix} for the match of the search object argument {obj} and returns the index where {obj} was found. If the {obj} was not found, false is returned. The member function uses the isIdentical predicate.

List

The inside function searches the List argument {list} for a match of the search object argument {obj} and returns the index where {obj} was found. If the {obj} was not found, false is returned. The isIdentical predicate is used to perform the comparison

Usage

The inside Function is used to find an object {obj} in a Vector {vector}. Since the inside function returns the location of the {obj}, the inside function makes it convenient to perform some operation on the {obj} . An alternate function, the isInside function, is used when a Boolean value of either true or false is sufficient.

Structure

The inside function if you want to locate the position of a certain key in a Structure. If you just want to know if a member is in the Structure but do not care where it is located if it is found, use the isInside function, which returns a Boolean true or false.

Dictionary

The inside function if you want to locate the position of a certain key in a Dictionary. If you just want to know if a member is in the Directory but do not care where it is located if it is found, use the isInside function, which returns a Boolean true or false.

Directory

The inside function if you want to locate the position of a certain key in a Directory. If you just want to know if a member is in the Structure, Dictionary or Directory but do not care where it is located if it is found, use the isInside function, which returns a Boolean true or false.

Matrix

The inside Function is used to find an object {obj} in a Matrix {matrix}. Since the inside function returns the location of the {obj}, the inside function makes it convenient to perform some operation on the {obj} . An alternate function, the isInside function, is used when a Boolean value of either true or false is sufficient.

NumMatrix

The inside function is used to find an object {obj} in a NumMatrix {nummatrix}. Since the inside function returns the location of the {obj}, the inside function makes it convenient to perform some operation on the {obj} . An alternate function, the isInside function, is used when a Boolean value of either true or false is sufficient.

Pair

The inside Function is used to find an object {obj} in a List {list}. Since the inside function returns the location of the {obj}, the inside function makes it convenient to perform some operation on the {obj} . An alternate function, the isInside function, is used when a Boolean value of either true or false is sufficient.

 

Syntax


Expression:

(inside obj vector)


Arguments Name Type Description
Argument:objCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex The search object.
Argument:vectorVector BitVector ShortVector IntVector NumVector The Vector to be searched.

Returns:

Returns false if the object is not present. If the object is present, returns an integer representing the index into the vector where the object was found.




Expression:

(inside key struct)


Arguments Name Type Description
Argument:keyString or Text The key (member) you wish to locate.
Argument:structStructure The structure to be searched.

Returns:

Returns the index of the member if it is found, otherwise it returns false




Expression:

(inside key dictionary)


Arguments Name Type Description
Argument:keyString or Text The key (member) you wish to locate.
Argument:dictionaryDictionary The Dictionary to be searched.

Returns:

Returns the index of the member if it is found, otherwise it returns false




Expression:

(inside key directory)


Arguments Name Type Description
Argument:keyString or Text The key (member) you wish to locate.
Argument:directoryDirectory The Directory to be searched.

Returns:

Returns the index of the member if it is found, otherwise it returns false




Expression:

(inside obj matrix)


Arguments Name Type Description
Argument:objCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex The search object.
Argument:matrixMatrix The Matrix to be searched.

Returns:

Returns false if the object is not present. If the object is present, returns an integer representing the index into the matrix where the object was found.




Expression:

(inside obj nummatrix)


Arguments Name Type Description
Argument:objCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex The search object.
Argument:nummatrixNumMatrix The NumMatrix to be searched.

Returns:

Returns false if the object is not present. If the object is present, returns an integer representing the index into the matrix where the object was found.




Expression:

(inside obj list )


Arguments Name Type Description
Argument:objCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex The search object.
Argument:listList The List to be searched.

Returns:

Returns false if the object is not present. If the object is present, returns an integer representing the index into the list where the object was found.



 

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 Dictionary Directory Integer
Boolean Symbol Structure Dictionary
Directory Integer Boolean Symbol
Structure Dictionary Directory Integer
Boolean Symbol Character String
Symbol Vector BitVector ByteVector
IntVector ShortVector FltVector ObjVector
Structure Dictionary Directory Boolean
Matrix NumMatrix Integer Float
Number Complex

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

++ += + /=
/ *= * --
-= - abortTransaction abs
acos add1 addMethod addi
appendWriteln append apply argument
arithmetic asin atan avg
badd balance bcompareEQ bcompareGE
bcompareGT bcompareLE bcompareLT bcompareNE
bdiv beginTransaction binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitToIntegerVector bitToNumberVector bitwiseAnd bitwiseNand
bitwiseNor bitwiseNot bitwiseNxor bitwiseOr
bitwiseShiftLeft bitwiseShiftRight bitwiseXor bmod
bmul boolean cadd ccompareEQ
ccompareGE ccompareGT ccompareLE ccompareLT
ccompareNE cdiv cdr char
character checkPointTransaction class clean
clear closeLog cmod cmul
code commitTransaction compareEQ compareGE
compareGT compareLE compareLT compareNE
compare comparison compile complex
compress conjugate cons copy
cos cosh count csub
date day days360 debugBrowsableProcs
debugDetective debugEval debug decode
defchild defclass define(macro) defineStructure
define defmacro defmethod deforphan
defriend defstruct defun deg
deleteRows delete dimension disassemble
display divi downcase encode
evalInSyncLocalContext eval exit exp
exportCsv exportSbf exportTab expt
fact fdisplay fieldsOf fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileResize
fileSeek fileSizeOf fileWriteAll fileWrite
filewriteln findBlock find floor
fraction freeBlock gc gcd
getGlobalValue getRecursionCount getSymbolTable getTickCount
globalBinding hashString hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imaginary
imod importCsv importSbf importTab
imul insertRows insert inside
inspect integer isAtom isBitVector
isBoolean isBound isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isClass isComplex isDate isDictionary
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isImmediate
isInexact isInside isIntegerVector isInteger
isLambda isMatrix isMember isMoney
isNegative isNull isNumberMatrix isNumberVector
isNumber isObjectVector isObject isOdd
isPair isPcodeVector isPositive isString
isStructure isSymbol isText isTransaction
isType isVector isZero isub
julian kurtosis lcm left
length lisp list loadModule
loadObject loadRepository loadWorkspace lock
log10 log2 logConsole log
logbase macroReplace makeDictionary makeGaussianMatrix
makeGramMatrix makeQuotedList makeQuotedSymbol makeStructure
map mapc matrixGaussianEliminate matrixGaussianSubstitute
max median member methodsOf
mid min minute mod
modi money month morph
muli nadd ncompareEQ ncompareGE
ncompareGT ncompareLE ncompareLT ncompareNE
ndiv new nmod nmul
now nsub number objectToDictionary
objectToDirectory objectToList objectToMatrix objectToNumMatrix
objectToNumVector objectToStructure objectToVector offset
onError openLog pair parent
parse pi pointer preAllocateFixedMemoryBlocks
product proplist proprecord putprop
qt quit rad random
randomize range rank real
refAttributes refValues ref remProp
remove rename replace rept
reset resize reverse right
round run saveImmediate saveModule
saveObject saveRepository saveWorkspace second
send setAttributes setBlock setCar
setCdr setLastCdr set setf
setq sigmoid sign sin
sinh sizeof skew sleep
sort sql sqrt srandom
stdev stdevp stringCiEQ stringCiGE
stringCiGT stringCiLE stringCiLT stringCiNE
stringFill stringToBVector stringToVector string
sub1 subi submit substitute
substringCiEQ substringCiGE substringCiGT substringCiLE
substringCiLT substringCiNE substringEQ substringFill
substringGE substringGT substringLE substringLT
substringNE substring sum sumsqr
super svmRegression symbolToTypeCode symbol
systemCheck system tan tanh
text time trim type
uncompress uniqueInsert unlock upcase
var varp vectorBinaryInnerProduct vectorBipolarInnerProduct
vectorCosineInnerProduct vectorCubeInnerProduct vectorDelete vectorExpInnerProduct
vectorFill vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct
vectorQuintInnerProduct vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct
vectorTanInnerProduct vectorTanhInnerProduct version writelg
writeln year

Analytic Information Server (AIS)

AIS Component Systems

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