Example FltVector append 007

 

 

Description

This example takes an existing Vector and appends a new value.

 

Details

(define X #("The " "rain " "In " "Spain" ) ) Returns: #<Vector 123456>
(define Y #("falls " "mainly " "on" ) ) Returns: #<Vector 234567>
(define Z #("the " "plain") ) Returns: #<Vector 345678>
(setq W (append X Y Z )) Returns: #<Vector 456789>

Use the display command to display the contents of the appended Vector. Note that Vector X, Y and Z are not modified.

(display #<Vector 456789> ) Returns: #("The " "rain " "In " "Spain" "falls " "mainly " "on " "the " "plain")

 

Related Examples

Here are examples of the append function at work.

BitVector append 010 CpxVector append 013 FltVector append 007 IntVector append 007
List member 009 Matrix append 007 NumMatrix append 012 NumVector append 008
ObjVector append 009 Pair append 011 ShortVector append 008 String append 001
String append 002 Structure append 004 Structure append 005 Symbol append 003
Vector append 006

 

Function Links

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

append

Here are a number of links to other related functions.

new(Vector) replace(Vector) rept(Vector)

 

Argument Types

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

FltVector

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

Dictionary isDictionary 001 FltVector addMethod 019 FltVector append 007 FltVector apply 005
FltVector binarySearch 005 FltVector cdr 006 FltVector compare 014 FltVector compareEQ 014
FltVector compareGE 014 FltVector compareGT 014 FltVector compareNE 014 FltVector comparison functions 014
FltVector copy 006 FltVector defmethod 017 FltVector delete 009 FltVector insert 005
FltVector isAtom 005 FltVector isEqual 013 FltVector isFloatVector 001 FltVector isIdentical 012
FltVector isObject 007 FltVector isType 016 FltVector length 008 FltVector map 005
FltVector mapc 005 FltVector methodsOf 017 FltVector new 009 FltVector ref 022
FltVector resize 006 FltVector reverse 003 FltVector send 015 FltVector setCdr 006
FltVector setLastCdr 006 FltVector setq 019 FltVector sizeof 014 FltVector sort 013
FltVector type 016 FltVector uniqueInsert 004 FltVector vectorFill 003 String isChar 001
String isCharAlphabetic 001 String isCharAlphanumeric 001 String isCharLowercase 001 String isCharName 001
String isCharNumeric 001 String isCharUppercase 001 String isCharWhitespace 001 String isEqual 001
String isEqual 002 String isObject 001 String isString 001 String isText 001
String isType 001 String isType 002 String isType 003 String sizeof 001
String string 001 String string 002 String string 003 String type 001
Symbol isCharName 002 Symbol isCharNumeric 002 Symbol isObject 002 Symbol isSymbol 001
Symbol isType 004 Symbol sizeof 002 Symbol type 002

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.