reverse

 

 

Overview

The reverse function creates and returns a new Vector, which contains the elements of the argument {obj} in reverse order. The argument {obj} may be a proper List or a Vector.

Matrix

The reverse function creates and returns a new Matrix, which contains the elements of the argument {obj} in reverse order. The argument {obj} may be a proper List or a Matrix.

NumMatrix

The reverse function creates and returns a new NumMatrix, which contains the elements of the argument {obj} in reverse order. The argument {obj} may be a proper List or a NumMatrix.

List

The reverse function creates and returns a new List, which contains the elements of the argument {obj} in reverse order. The argument {obj} may be a proper List or a Vector.

Usage

Use the reverse function reorganizes the elements in a Vector, Matrix or List in reverse order.

Matrix

Note: Returns an error message if the Matrix is not of rank one.

Use the reverse function reorganizes the elements in a Matrix in reverse order.

NumMatrix

Note: Returns an error message if the NumMatrix is not of rank one.

Use the reverse function reorganizes the elements in a NumMatrix in reverse order.

 

Syntax


Expression:

(reverse obj)


Arguments Name Type Description
Argument:objVector FltVector ShortVector IntVector NumVector ObjVector BitVector List Must be a Vector or List.

Returns:

Returns a Vector containing the elements in reverse order




Expression:

(reverse obj)


Arguments Name Type Description
Argument:objMatrix Must be a Matrix

Returns:

Returns a Matrix containing the elements in reverse order




Expression:

(reverse obj)


Arguments Name Type Description
Argument:obj NumMatrix Must be a NumMatrix

Returns:

Returns a NumMatrix ontaining the elements in reverse order




Expression:

(reverse obj)


Arguments Name Type Description
Argument:objVector List Must be a Vector or List.

Returns:

Returns a List containing the arguments reorganized in reverse order



 

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.

List Vector Matrix NumMatrix
FltVector ShortVector IntVector NumVector
ObjVector BitVector

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

addMethod appendWriteln append apply
associate binaryInsert binarySearch bitToIntegerVector
bitToNumberVector boolean c::r car
cdr compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison compile cons copy
count debugDetective delete dimension
display eval exportCsv exportSbf
exportTab findBlock find freeBlock
getSymbolTable globalBinding importCsv importSbf
importTab insert inside integer
isAtom isBitVector isBoolean isByteVector
isCharAlphabetic isCharAlphanumeric isCharLowercase isCharName
isCharNumeric isCharUppercase isCharWhitespace isChar
isCharacter 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 last length lisp
list macroReplace makeGaussianMatrix makeGramMatrix
makeQuotedList map mapc matrixGaussianEliminate
matrixGaussianSubstitute member money morph
new number objectToList objectToMatrix
objectToNumMatrix objectToNumVector objectToVector offset
pair parent parse pointer
product proplist proprecord putprop
quote rank refAttributes refValues
ref remProp remove resize
reverse saveObject setAttributes setBlock
setCar setCdr setLastCdr setq
sizeof sort sql stringToBVector
stringToVector string svmRegression type
uniqueInsert vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorExpInnerProduct vectorFill vectorInnerProduct
vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct vectorSigmoidInnerProduct
vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct vectorTanhInnerProduct
writelg writeln

Analytic Information Server (AIS)

AIS Component Systems

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