arturo icon indicating copy to clipboard operation
arturo copied to clipboard

[Reflection\object?] add documentation example

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

[Reflection\object?] add documentation example

https://github.com/arturo-lang/arturo/blob/c6aef1164b5063926b27cc984f78594df1377bf2/src/library/Reflection.nim#L649

            push(newLogical(x.kind==Null))

    builtin "object?",
        alias       = unaliased, 
        rule        = PrefixPrecedence,
        description = "checks if given value is a custom-type object",
        args        = {
            "value" : {Any}
        },
        attrs       = NoAttrs,
        returns     = {Logical},
        # TODO(Reflection\object?) add documentation example
        #  labels: library, documentation, easy
        example     = """
        """:
            ##########################################################
            push(newLogical(x.kind==Dictionary and (not x.custom.isNil())))

    builtin "path?",
        alias       = unaliased, 
        rule        = PrefixPrecedence,
ndex 89395971e..3bcb0b104 100644
++ b/version/build

2e673395275fdc51f2303411975ce890eece0cb2

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