|
delete
|
The delete function destructively deletes the specified object from a Matrix.
The object is specified explicitly as an argument {obj} or by the index {index}
into the Matrix. The Matrix is decreased in size to reflect the lost value.
Note: Returns an error message if the Matrix is not of rank one.
Use delete function is used to remove an object from a Matrix. The object to be deleted must be specified as an index into the Matrix. The delete function behaves like the remove function with the following exception: The delete function is destructive and the remove function is non-destructive.
(delete matrix index) The modified Matrix. If the object or index is not found the Matrix is returned
unmodified.
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.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types matrix The Matrix you wish to modify. Matrix index If present, it must be the index of the object you wish to delete Integer
Returns:
Examples
Argument Types
Structure
Dictionary
Directory
Integer
Vector
Pair
List
Symbol
NumMatrix
ObjectRepository
Matrix
FltVector
ShortVector
IntVector
NumVector
ObjVector
How do I contact the AIS team?