Topic: string and list concatenation

topics > computer science > data > Group: sequence operations

notation for operations
string operations


Concatenation is a common operations for strings and lists. Underscore, spacing, dot, double exclamation mark, and pound sign have all been used for denoting concatenation. Why so many different operators? Here is the danger of notation. Unless a notation is frequently used or it matches existing conventions, notation hinders understanding while enhancing expressional conciseness. (cbb 5/80)
Subtopic: list concatenation and splitting up

Quote: used parameter passing mechanism for concatenation and splitting of lists; list by square brackets around actual or formal parameters [»mckeRM5_1984]

Subtopic: string concatenate up

Quote: desired properties for strings: immutable strings, long strings, files as strings, efficient non-destructive concatenation and substring operations
Quote: efficient string concatenation implies data sharing and automatic garbage collection [»boehHJ12_1995]

Subtopic: concatenate operator up

QuoteRef: kayAC6_1968 ;;26 "# is the concatenation operator. the result is the concatenation of the two operands
QuoteRef: mumps ;;underscore for concatenation eg A _ B
QuoteRef: cbb_1973 ;;pl/n !! for concatenation
QuoteRef: stepPD8_1974 ;;217 concatenation of strings by '.'

Subtopic: space as concatenate up

Quote: syntactic metalanguage includes an explicit concatenate operator so that identifiers can include blanks [»scowRS3_1982]
QuoteRef: sammJE_1969 ;;440 size(a) function call while size (a) is concatenation of size and (a)

Related Topics up

Topic: notation for operations (18 items)
Topic: strings (13 items)
Topic: string operations
(20 items)

Updated barberCB 2/05
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.