arturo icon indicating copy to clipboard operation
arturo copied to clipboard

[Reflection\complex?] add documentation example

Open github-actions[bot] opened this issue 2 years ago • 0 comments

[Reflection\complex?] add documentation example

https://github.com/arturo-lang/arturo/blob/3a89302d1b1f33da097ed6e7bd6dfb05fc338482/src/library/Reflection.nim#L292


    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,

618f5b7315934d100b1650e62313cf8d69700ce6

github-actions[bot] avatar Aug 02 '22 15:08 github-actions[bot]