summaryrefslogtreecommitdiff
path: root/palindrome.scm
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2024-05-18 19:12:47 -0600
committerbd <bdunahu@operationnull.com>2024-05-18 19:12:47 -0600
commitf6d333ef67fa2c9c199d4c401322fc31d90867da (patch)
treea97b33ec3f7bbac6b5174cbb30cf8f93ad19c885 /palindrome.scm
parent05a303de6c8cf8e8acb00b2107f7a66c363140b3 (diff)
Adapt palindrome into a ttd approach
Diffstat (limited to 'palindrome.scm')
-rwxr-xr-xpalindrome.scm16
1 files changed, 0 insertions, 16 deletions
diff --git a/palindrome.scm b/palindrome.scm
deleted file mode 100755
index 788fa06..0000000
--- a/palindrome.scm
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/run/current-system/profile/bin/guile \
--e main -s
-!#
-
-
-(define (main args)
- (format #t "String was ~aa palindrome!\n"
- (if (palindrome? (cleanup (car (cdr args))))
- "" "not ")))
-
-(define (cleanup str)
- (string-downcase (string-filter
- char-set:letter str)))
-
-(define (palindrome? str)
- (equal? str (string-reverse str)))