arturo
arturo copied to clipboard
[Reflection\color?] add documentation example
[Reflection\color?] add documentation example
https://github.com/arturo-lang/arturo/blob/3a89302d1b1f33da097ed6e7bd6dfb05fc338482/src/library/Reflection.nim#L276
push(newLogical(x.kind==Char))
builtin "color?",
alias = unaliased,
rule = PrefixPrecedence,
description = "checks if given value is of type :color",
args = {
"value" : {Any}
},
attrs = NoAttrs,
returns = {Logical},
# TODO(Reflection\color?) add documentation example
# labels: library, documentation, easy
example = """
""":
##########################################################
push(newLogical(x.kind==Color))
builtin "complex?",
alias = unaliased,
rule = PrefixPrecedence,
description = "checks if given value is of type :complex",
args = {
"value" : {Any}
},
attrs = NoAttrs,
returns = {Logical},
# TODO(Reflection\complex?) add documentation example
# labels: library, documentation, easy
example = """
""":
##########################################################
push(newLogical(x.kind==Complex))
builtin "database?",
alias = unaliased,
rule = PrefixPrecedence,
8987915cd1f800b633099fbf55a185849ff48622