This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; P06 (*) Find out whether a list is a palindrome. | |
;; A palindrome can be read forward or backward; e.g. (x a m a x). | |
(define (palin? lst) | |
(equal? lst (reverse lst))) |
0 件のコメント:
コメントを投稿