about summary refs log tree commit diff stats
path: root/rkt
diff options
context:
space:
mode:
authorelioat <{ID}+{username}@users.noreply.github.com>2024-07-31 14:06:24 -0400
committerelioat <{ID}+{username}@users.noreply.github.com>2024-07-31 14:06:24 -0400
commitf67aecd5015ffd45701981bf5c2c95836f47efe7 (patch)
treef2b9736ea6c6580c34257d53504a4fe117fb2ce6 /rkt
parentb6e8a9bfd57ad64453518c76357f4006ba6e13c3 (diff)
downloadtour-f67aecd5015ffd45701981bf5c2c95836f47efe7.tar.gz
*
Diffstat (limited to 'rkt')
-rw-r--r--rkt/double.rkt9
1 files changed, 9 insertions, 0 deletions
diff --git a/rkt/double.rkt b/rkt/double.rkt
new file mode 100644
index 0000000..3ef0755
--- /dev/null
+++ b/rkt/double.rkt
@@ -0,0 +1,9 @@
+#lang racket
+
+(define (double v)
+  ((if (string? v) string-append +) v v))
+
+(string-append "ba"
+               (double "na"))
+
+(double 21)
\ No newline at end of file