- isolate core game logic and move it to src/game.fnl - main.fnl should be just the ui now - move all table funcs into lib/table - move all (1) string funcs into lib/string - move all game funcs into lib/game/
7 lines
110 B
Fennel
7 lines
110 B
Fennel
;; string funs
|
|
|
|
(fn capitalize [s]
|
|
(.. (string.upper (string.sub s 1 1)) (string.sub s 2)))
|
|
|
|
{: capitalize}
|