
29 May
2008
29 May
'08
1:04 p.m.
Hello, I was wondering how expensive appending something to a list really is. Say I write I'd say "longList ++ [5]" stays unevaluated until I consumed the whole list and then appending should go in O(1). Similarly when concatenating two lists. Is that true, or am I missing something? Adrian