appendWriteln

 

 

Overview

The appendWriteln Function converts one or more arguments to strings and appends them to the end of a target Byte Vector and returns the result. The appendWriteln operation is destructive, that is the result of appending changes the contents of the target Byte Vector. The arguments are converted into strings and concatenated from left to right, returning the final appended Byte Vector. If only the Byte Vector is specified, it is returned.

Usage

Use the appendWriteln function to concatenate large strings into a preallocated space. This will be faster than multiple appends, which may involve multiple garbage collections, as the required space grows in size.

 

Syntax


Expression:

(appendWriteln ByteVector...)


Arguments Name Type Description
Argument:ByteVectorByteVector A preallocated Byte Vector argument, with enough size to contain the final appended string, is mandatory. It can be followed by a list of arguments, each of which will be converted to a string and concatenated into the specified Byte Vector.

Returns:

The Byte Vector, after the append, is returned.



 

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.

Vector String ByteVector

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

*= addMethod appendWriteln append
apply balance binaryInsert binarySearch
bitToNumberVector bitwiseNot boolean cdr
character clean closeLog code
compareEQ compareGE compareGT compareLE
compareLT compareNE compare comparison
compress cons copy count
date day days360 debugBrowsableProcs
debugDetective debugEval decode delete
dimension disassemble display downcase
encode evalInSyncLocalContext eval exportCsv
exportSbf exportTab fdisplay fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileSizeOf
fileWriteAll fileWrite filewriteln findBlock
find freeBlock hashString hour
importCsv importSbf importTab insert
inside inspect 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
julian left length list
loadModule loadObject loadWorkspace macroReplace
makeGramMatrix makeQuotedList makeQuotedSymbol map
mapc member mid minute
money month new number
objectToList objectToMatrix objectToNumMatrix objectToNumVector
objectToVector offset openLog pair
parent parse pointer product
qt rank refAttributes refValues
ref remove replace rept
resize reverse right run
saveImmediate saveModule saveObject saveWorkspace
second setAttributes setBlock setCar
setCdr setLastCdr set setf
setq sizeof sort sql
stringCiEQ stringCiGE stringCiGT stringCiLE
stringCiLT stringCiNE stringFill stringToBVector
stringToVector string submit substitute
substringCiEQ substringCiGE substringCiGT substringCiLE
substringCiLT substringCiNE substringEQ substringFill
substringGE substringGT substringLE substringLT
substringNE substring svmRegression symbolToTypeCode
symbol system text time
trim type uncompress uniqueInsert
upcase vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorExpInnerProduct vectorFill vectorInnerProduct
vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct vectorSigmoidInnerProduct
vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct vectorTanhInnerProduct
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