Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
;; returns #t or #f
|
||||
(define (palindrome? string)
|
||||
(equal? (string->list string) (reverse (string->list string))))
|
||||
|
||||
;; to strip spaces, use the following
|
||||
;;(define (palindrome? string)
|
||||
;;(let ((string (string-replace string "/\ /" "" "g")))
|
||||
;;(equal? (string->list string) (reverse (string->list string)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue