i see several examples of implementing append an element to a list, but all are not using tail recursion. how to implement such a function in a
append
You can't naively, but see also implementations that provide TCMC - Tail Call Modulo Cons. That allows
(cons head TAIL-EXPR)
to tail-call TAIL-EXPR if the cons itself is a tail-call.
TAIL-EXPR