summary refs log tree commit diff
path: root/lib/string.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.fnl')
-rw-r--r--lib/string.fnl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/string.fnl b/lib/string.fnl
new file mode 100644
index 0000000..510b0ed
--- /dev/null
+++ b/lib/string.fnl
@@ -0,0 +1,4 @@
+(fn capitalize [s]
+  (.. (string.upper (string.sub s 1 1)) (string.sub s 2)))
+
+{: capitalize}