mirror of
https://github.com/janet-lang/janet
synced 2024-09-29 23:40:40 +00:00
01e8749f39
for an apply like structure in the language
21 lines
424 B
Plaintext
21 lines
424 B
Plaintext
# Pretty print
|
|
|
|
# Reindent a function to be more deeply indented
|
|
(: reindent (fn [x] x))
|
|
|
|
(: handler {
|
|
"number" tostring
|
|
"nil" tostring
|
|
"boolean" tostring
|
|
"userdata" tostring
|
|
"cfunction" tostring
|
|
"function" tostring
|
|
"string" tostring # change to unquote string
|
|
"buffer" tostring
|
|
"array" tostring
|
|
"tuple" tostring
|
|
"object" tostring
|
|
"struct" tostring
|
|
"thread" tostring
|
|
})
|