In computer programming, append
is the operation for concatenating linked lists or arrays in some high-level programming languages.
Append
originates in the programming language Lisp. The append
procedure takes zero or more (linked) lists as arguments, and returns the concatenation of these lists.
(append '(1 2 3) '(a b) '() '(6))
;Output: (1 2 3 a b 6)
Since the append
procedure must completely copy all of its arguments except the last, both its time and space complexity are O(n) for a list of elements. It may thus be a source of inefficiency if used injudiciously in code.
The nconc
procedure (called append!
in hre
Latest online Append Tutorials with example so this page for both freshers and experienced candidate who want to get job in Append company