August 19, 2024

P06 - Find out whether a list is a palindrome

A palindrome can be read forward or backward; e.g. (x a m a x).

lisp

(defun palin (lista)
  (equal lista (reverse lista))
  )
Be first to comment
Leave a reply