Example ShortVector remove 006

 

 

Description

This example defines a Vector and uses the remove function to non-destructively delete a value. If the value does not exist in the Vector then the same Vector is returned unchanged.

 

Details

(setq Z #(short| 11 12 ) ) Returns: #<ShortVector 123456>

Removes the specified value and copies the result to a new Vector.

(setq A (remove 11 Z)) Returns: #<ShortVector 234567>

Displays the modified Vector.

(display A) Returns: #(short| 12 )

 

Related Examples

Here are examples of the remove function at work.

BitVector remove 008 Dictionary remove 002 Directory remove 003 Directory vectorDelete 001
IntVector remove 005 Matrix remove 005 NumMatrix remove 008 NumVector remove 006
ObjVector remove 007 ShortVector remove 006 Structure remove 001 Vector remove 004

 

Function Links

Here is the link to the current function used in this example.

remove

Here are a number of links to other related functions.

delete(#void) insert(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

ShortVector

Here are a number of links to examples having similar argument types.

ShortVector addMethod 021 ShortVector append 008 ShortVector apply 007 ShortVector binaryInsert 006
ShortVector binarySearch 007 ShortVector cdr 008 ShortVector compare 016 ShortVector compareEQ 015
ShortVector compareGE 015 ShortVector compareGT 015 ShortVector compareLE 015 ShortVector compareLT 015
ShortVector compareNE 015 ShortVector comparison functions 015 ShortVector copy 008 ShortVector defmethod 019
ShortVector delete 011 ShortVector insert 007 ShortVector inside 006 ShortVector isAtom 007
ShortVector isEqual 015 ShortVector isIdentical 014 ShortVector isObject 009 ShortVector length 010
ShortVector map 007 ShortVector mapc 007 ShortVector member 006 ShortVector methodsOf 019
ShortVector new 011 ShortVector ref 024 ShortVector remove 006 ShortVector resize 008
ShortVector reverse 005 ShortVector send 017 ShortVector setCdr 008 ShortVector setq 021
ShortVector sizeof 016 ShortVector sort 015 ShortVector type 018 ShortVector uniqueInsert 007
ShortVector vectorFill 005

Analytic Information Server (AIS)

AIS Component Systems

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