Loading [MathJax]/extensions/tex2jax.js

2010年7月15日木曜日

Find out whether a list is a palindrome

;; 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)))
view raw p06.ss hosted with ❤ by GitHub

0 件のコメント:

コメントを投稿