summary refs log tree commit diff
path: root/lib/string.fnl
blob: 28d1866784123677cee3650def256647faf67519 (plain)
1
2
3
4
5
6
;; string funs

(fn capitalize [s]
  (.. (string.upper (string.sub s 1 1)) (string.sub s 2)))

{: capitalize}