Consider function consR which creates a new list with its arguments by places an element to the
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider function consR which creates a new list with its arguments by places an element to the right of a list, just as function cons creates a new list by placing an element on the left of a list. For example, consR((a, b, c), d) = (a, b, c, d) .
(a) Provide a recursive computable function definition for consR(L, e) (in mathematical notation).
(b) Translate the above definition into function consr(lst elt). Do not use append or list.
Posted Date: