mirror of
https://github.com/janet-lang/janet
synced 2024-11-17 22:24:49 +00:00
commit
9b42d5a5e9
@ -645,20 +645,21 @@ static const JanetReg corelib_cfuns[] = {
|
|||||||
{
|
{
|
||||||
"type", janet_core_type,
|
"type", janet_core_type,
|
||||||
JDOC("(type x)\n\n"
|
JDOC("(type x)\n\n"
|
||||||
"Returns the type of x as a keyword. x is one of\n"
|
"Returns the type of `x` as a keyword. `x` is one of:\n\n"
|
||||||
"\t:nil\n"
|
"* :nil\n\n"
|
||||||
"\t:boolean\n"
|
"* :boolean\n\n"
|
||||||
"\t:number\n"
|
"* :number\n\n"
|
||||||
"\t:array\n"
|
"* :array\n\n"
|
||||||
"\t:tuple\n"
|
"* :tuple\n\n"
|
||||||
"\t:table\n"
|
"* :table\n\n"
|
||||||
"\t:struct\n"
|
"* :struct\n\n"
|
||||||
"\t:string\n"
|
"* :string\n\n"
|
||||||
"\t:buffer\n"
|
"* :buffer\n\n"
|
||||||
"\t:symbol\n"
|
"* :symbol\n\n"
|
||||||
"\t:keyword\n"
|
"* :keyword\n\n"
|
||||||
"\t:function\n"
|
"* :function\n\n"
|
||||||
"\t:cfunction\n\n"
|
"* :cfunction\n\n"
|
||||||
|
"* :fiber\n\n"
|
||||||
"or another keyword for an abstract type.")
|
"or another keyword for an abstract type.")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user