The append Function
The append function attaches one list to another. Thus,
emacs-lisp
(append '(1 2 3 4) '(5 6 7 8))produces the list
emacs-lisp
(1 2 3 4 5 6 7 8)This is exactly how we want to attach two lengths’ lists produced by lengths-list-file to each other. The results contrast with cons,
emacs-lisp
(cons '(1 2 3 4) '(5 6 7 8))which constructs a new list in which the first argument to cons becomes the first element of the new list:
emacs-lisp
((1 2 3 4) 5 6 7 8)