Some months ago I read somewhere of an efficient approach for appending and prepending lists to other lists in O(1) by representing them with function compositions that, once evaluated, build in O(n) the resulting list.
Unfortunately I cannot remember the source of this article or (if existing) the name of this technique/approach. Do you have references about it, please?