6 - Define a Recursive LISP
function which takes one argument as a list and returns a list except last
element of the list.
Implementation Code in LISP -
(append (list
( first l)) (not_last (rest l)))
OUTPUT-
(not_last '(1 2 3 4 5) )
(4 3 2 1)
No comments:
Post a Comment