ATerm++

PrevUpHomeNext

Function append

genspect::append —

Synopsis

aterm_list append(aterm_list l, aterm el);

Description

Return list l with el appended to it. Note that append is implemented in terms of insert by making a new list with el as the first element and then inserting all elements from list. As such, the complexity of append is linear in the number of elements in list. When append is needed inside a loop that traverses a list behaviour of the loop will demonstrate quadratic complexity.

Copyright © 2004 Wieger Wesselink

PrevUpHomeNext